diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-04-10 21:55:32 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-05-02 05:43:23 +0300 |
commit | 6d0e0d0bb8eb673472dd08d83c8169452c50f269 (patch) | |
tree | 0dbdd8431085e7f4a5b3f9367f0e6008a79907f9 /arch/powerpc/platforms/cell/spufs/inode.c | |
parent | fdb0da89f4ba0c74d7d3b9e6f471e96a5766820b (diff) | |
download | linux-6d0e0d0bb8eb673472dd08d83c8169452c50f269.tar.xz |
spufs: switch to ->free_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/inode.c')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index db329d4bf1c3..c1a75216050a 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c @@ -71,17 +71,11 @@ spufs_alloc_inode(struct super_block *sb) 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)); } -static void spufs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, spufs_i_callback); -} - 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, - .destroy_inode = spufs_destroy_inode, + .free_inode = spufs_free_inode, .statfs = simple_statfs, .evict_inode = spufs_evict_inode, .show_options = spufs_show_options, |