Commit 5b4408a9 authored by J. R. Okajima's avatar J. R. Okajima
Browse files

aufs: for v5.2-rc1, xsit to ->free_inode()


Signed-off-by: default avatarJ. R. Okajima <hooanon05g@gmail.com>
parent 858da7e4
...@@ -31,18 +31,15 @@ static struct inode *aufs_alloc_inode(struct super_block *sb __maybe_unused) ...@@ -31,18 +31,15 @@ static struct inode *aufs_alloc_inode(struct super_block *sb __maybe_unused)
return NULL; 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) static void aufs_destroy_inode(struct inode *inode)
{ {
if (!au_is_bad_inode(inode)) if (!au_is_bad_inode(inode))
au_iinfo_fin(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) struct inode *au_iget_locked(struct super_block *sb, ino_t ino)
...@@ -840,6 +837,7 @@ out: ...@@ -840,6 +837,7 @@ out:
static const struct super_operations aufs_sop = { static const struct super_operations aufs_sop = {
.alloc_inode = aufs_alloc_inode, .alloc_inode = aufs_alloc_inode,
.destroy_inode = aufs_destroy_inode, .destroy_inode = aufs_destroy_inode,
.free_inode = aufs_free_inode,
/* always deleting, no clearing */ /* always deleting, no clearing */
.drop_inode = generic_delete_inode, .drop_inode = generic_delete_inode,
.show_options = aufs_show_options, .show_options = aufs_show_options,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment