Skip to content

Commit

Permalink
hostfs: switch to ->free_inode()
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed May 2, 2019
1 parent 08ab229 commit 08ccfc5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions fs/hostfs/hostfs_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,17 +243,11 @@ static void hostfs_evict_inode(struct inode *inode)
}
}

static void hostfs_i_callback(struct rcu_head *head)
static void hostfs_free_inode(struct inode *inode)
{
struct inode *inode = container_of(head, struct inode, i_rcu);
kfree(HOSTFS_I(inode));
}

static void hostfs_destroy_inode(struct inode *inode)
{
call_rcu(&inode->i_rcu, hostfs_i_callback);
}

static int hostfs_show_options(struct seq_file *seq, struct dentry *root)
{
const char *root_path = root->d_sb->s_fs_info;
Expand All @@ -270,7 +264,7 @@ static int hostfs_show_options(struct seq_file *seq, struct dentry *root)

static const struct super_operations hostfs_sbops = {
.alloc_inode = hostfs_alloc_inode,
.destroy_inode = hostfs_destroy_inode,
.free_inode = hostfs_free_inode,
.evict_inode = hostfs_evict_inode,
.statfs = hostfs_statfs,
.show_options = hostfs_show_options,
Expand Down

0 comments on commit 08ccfc5

Please sign in to comment.