Skip to content

Commit 08ccfc5

Browse files
author
Al Viro
committed
hostfs: switch to ->free_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 08ab229 commit 08ccfc5

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎fs/hostfs/hostfs_kern.c‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,17 +243,11 @@ static void hostfs_evict_inode(struct inode *inode)
243243
}
244244
}
245245

246-
static void hostfs_i_callback(struct rcu_head *head)
246+
static void hostfs_free_inode(struct inode *inode)
247247
{
248-
struct inode *inode = container_of(head, struct inode, i_rcu);
249248
kfree(HOSTFS_I(inode));
250249
}
251250

252-
static void hostfs_destroy_inode(struct inode *inode)
253-
{
254-
call_rcu(&inode->i_rcu, hostfs_i_callback);
255-
}
256-
257251
static int hostfs_show_options(struct seq_file *seq, struct dentry *root)
258252
{
259253
const char *root_path = root->d_sb->s_fs_info;
@@ -270,7 +264,7 @@ static int hostfs_show_options(struct seq_file *seq, struct dentry *root)
270264

271265
static const struct super_operations hostfs_sbops = {
272266
.alloc_inode = hostfs_alloc_inode,
273-
.destroy_inode = hostfs_destroy_inode,
267+
.free_inode = hostfs_free_inode,
274268
.evict_inode = hostfs_evict_inode,
275269
.statfs = hostfs_statfs,
276270
.show_options = hostfs_show_options,

0 commit comments

Comments
 (0)