spufs: switch to ->free_inode()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 10 Apr 2019 18:55:32 +0000 (14:55 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 2 May 2019 02:43:23 +0000 (22:43 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/powerpc/platforms/cell/spufs/inode.c

index db329d4..c1a7521 100644 (file)
@@ -71,17 +71,11 @@ spufs_alloc_inode(struct super_block *sb)
        return &ei->vfs_inode;
 }
 
        return &ei->vfs_inode;
 }
 
-static void spufs_i_callback(struct rcu_head *head)
+static void spufs_free_inode(struct inode *inode)
 {
 {
-       struct inode *inode = container_of(head, struct inode, i_rcu);
        kmem_cache_free(spufs_inode_cache, SPUFS_I(inode));
 }
 
        kmem_cache_free(spufs_inode_cache, SPUFS_I(inode));
 }
 
-static void spufs_destroy_inode(struct inode *inode)
-{
-       call_rcu(&inode->i_rcu, spufs_i_callback);
-}
-
 static void
 spufs_init_once(void *p)
 {
 static void
 spufs_init_once(void *p)
 {
@@ -739,7 +733,7 @@ spufs_fill_super(struct super_block *sb, void *data, int silent)
        struct spufs_sb_info *info;
        static const struct super_operations s_ops = {
                .alloc_inode = spufs_alloc_inode,
        struct spufs_sb_info *info;
        static const struct super_operations s_ops = {
                .alloc_inode = spufs_alloc_inode,
-               .destroy_inode = spufs_destroy_inode,
+               .free_inode = spufs_free_inode,
                .statfs = simple_statfs,
                .evict_inode = spufs_evict_inode,
                .show_options = spufs_show_options,
                .statfs = simple_statfs,
                .evict_inode = spufs_evict_inode,
                .show_options = spufs_show_options,