Skip to content

Commit 4d436d5

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

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎fs/hpfs/super.c‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,17 +238,11 @@ static struct inode *hpfs_alloc_inode(struct super_block *sb)
238238
return &ei->vfs_inode;
239239
}
240240

241-
static void hpfs_i_callback(struct rcu_head *head)
241+
static void hpfs_free_inode(struct inode *inode)
242242
{
243-
struct inode *inode = container_of(head, struct inode, i_rcu);
244243
kmem_cache_free(hpfs_inode_cachep, hpfs_i(inode));
245244
}
246245

247-
static void hpfs_destroy_inode(struct inode *inode)
248-
{
249-
call_rcu(&inode->i_rcu, hpfs_i_callback);
250-
}
251-
252246
static void init_once(void *foo)
253247
{
254248
struct hpfs_inode_info *ei = (struct hpfs_inode_info *) foo;
@@ -532,7 +526,7 @@ static int hpfs_show_options(struct seq_file *seq, struct dentry *root)
532526
static const struct super_operations hpfs_sops =
533527
{
534528
.alloc_inode = hpfs_alloc_inode,
535-
.destroy_inode = hpfs_destroy_inode,
529+
.free_inode = hpfs_free_inode,
536530
.evict_inode = hpfs_evict_inode,
537531
.put_super = hpfs_put_super,
538532
.statfs = hpfs_statfs,

0 commit comments

Comments
 (0)