diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-04-10 21:00:26 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-05-02 04:43:23 +0200 |
commit | 5e8a0770c01a77783376c7ffac4f86e21685434e (patch) | |
tree | 93a627b1e268f5064f2e2fc026794d7c47fa0b5e /fs/9p/vfs_inode.c | |
parent | erofs: switch to ->free_inode() (diff) | |
download | linux-5e8a0770c01a77783376c7ffac4f86e21685434e.tar.xz linux-5e8a0770c01a77783376c7ffac4f86e21685434e.zip |
9p: switch to ->free_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r-- | fs/9p/vfs_inode.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 72b779bc0942..24050e866e64 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -253,21 +253,15 @@ struct inode *v9fs_alloc_inode(struct super_block *sb) } /** - * v9fs_destroy_inode - destroy an inode + * v9fs_free_inode - destroy an inode * */ -static void v9fs_i_callback(struct rcu_head *head) +void v9fs_free_inode(struct inode *inode) { - struct inode *inode = container_of(head, struct inode, i_rcu); kmem_cache_free(v9fs_inode_cache, V9FS_I(inode)); } -void v9fs_destroy_inode(struct inode *inode) -{ - call_rcu(&inode->i_rcu, v9fs_i_callback); -} - int v9fs_init_inode(struct v9fs_session_info *v9ses, struct inode *inode, umode_t mode, dev_t rdev) { |