Skip to content

Commit db0bd7b

Browse files
author
Al Viro
committed
jffs2: switch to ->free_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 07b0120 commit db0bd7b

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎fs/jffs2/super.c‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,14 @@ static struct inode *jffs2_alloc_inode(struct super_block *sb)
4444
return &f->vfs_inode;
4545
}
4646

47-
static void jffs2_i_callback(struct rcu_head *head)
47+
static void jffs2_free_inode(struct inode *inode)
4848
{
49-
struct inode *inode = container_of(head, struct inode, i_rcu);
5049
struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode);
5150

5251
kfree(f->target);
5352
kmem_cache_free(jffs2_inode_cachep, f);
5453
}
5554

56-
static void jffs2_destroy_inode(struct inode *inode)
57-
{
58-
call_rcu(&inode->i_rcu, jffs2_i_callback);
59-
}
60-
6155
static void jffs2_i_init_once(void *foo)
6256
{
6357
struct jffs2_inode_info *f = foo;
@@ -258,7 +252,7 @@ static int jffs2_remount_fs(struct super_block *sb, int *flags, char *data)
258252
static const struct super_operations jffs2_super_operations =
259253
{
260254
.alloc_inode = jffs2_alloc_inode,
261-
.destroy_inode =jffs2_destroy_inode,
255+
.free_inode = jffs2_free_inode,
262256
.put_super = jffs2_put_super,
263257
.statfs = jffs2_statfs,
264258
.remount_fs = jffs2_remount_fs,

0 commit comments

Comments
 (0)