Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Aufs5 Standalone
Commits
5b4408a9
Commit
5b4408a9
authored
May 23, 2019
by
J. R. Okajima
Browse files
aufs: for v5.2-rc1, xsit to ->free_inode()
Signed-off-by:
J. R. Okajima
<
hooanon05g@gmail.com
>
parent
858da7e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
fs/aufs/super.c
View file @
5b4408a9
...
...
@@ -31,18 +31,15 @@ static struct inode *aufs_alloc_inode(struct super_block *sb __maybe_unused)
return
NULL
;
}
static
void
aufs_destroy_inode_cb
(
struct
rcu_head
*
head
)
{
struct
inode
*
inode
=
container_of
(
head
,
struct
inode
,
i_rcu
);
au_cache_free_icntnr
(
container_of
(
inode
,
struct
au_icntnr
,
vfs_inode
));
}
static
void
aufs_destroy_inode
(
struct
inode
*
inode
)
{
if
(
!
au_is_bad_inode
(
inode
))
au_iinfo_fin
(
inode
);
call_rcu
(
&
inode
->
i_rcu
,
aufs_destroy_inode_cb
);
}
static
void
aufs_free_inode
(
struct
inode
*
inode
)
{
au_cache_free_icntnr
(
container_of
(
inode
,
struct
au_icntnr
,
vfs_inode
));
}
struct
inode
*
au_iget_locked
(
struct
super_block
*
sb
,
ino_t
ino
)
...
...
@@ -840,6 +837,7 @@ out:
static
const
struct
super_operations
aufs_sop
=
{
.
alloc_inode
=
aufs_alloc_inode
,
.
destroy_inode
=
aufs_destroy_inode
,
.
free_inode
=
aufs_free_inode
,
/* always deleting, no clearing */
.
drop_inode
=
generic_delete_inode
,
.
show_options
=
aufs_show_options
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment