From: Al Viro Date: Tue, 16 Apr 2019 02:21:45 +0000 (-0400) Subject: romfs: convert to ->free_inode() X-Git-Tag: v5.4-rc1~1088^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcb8d71bda471b6822549264577e10fe9d54884b;p=platform%2Fkernel%2Flinux-rpi.git romfs: convert to ->free_inode() Signed-off-by: Al Viro --- diff --git a/fs/romfs/super.c b/fs/romfs/super.c index 6ccb519..7d580f7 100644 --- a/fs/romfs/super.c +++ b/fs/romfs/super.c @@ -381,18 +381,11 @@ static struct inode *romfs_alloc_inode(struct super_block *sb) /* * return a spent inode to the slab cache */ -static void romfs_i_callback(struct rcu_head *head) +static void romfs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); - kmem_cache_free(romfs_inode_cachep, ROMFS_I(inode)); } -static void romfs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, romfs_i_callback); -} - /* * get filesystem statistics */ @@ -439,7 +432,7 @@ static int romfs_remount(struct super_block *sb, int *flags, char *data) static const struct super_operations romfs_super_ops = { .alloc_inode = romfs_alloc_inode, - .destroy_inode = romfs_destroy_inode, + .free_inode = romfs_free_inode, .statfs = romfs_statfs, .remount_fs = romfs_remount, };