Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

9p: switch to ->free_inode()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 5e8a0770 25af6c4a

+5 -11
+1 -1
fs/9p/v9fs_vfs.h
··· 58 58 extern struct kmem_cache *v9fs_inode_cache; 59 59 60 60 struct inode *v9fs_alloc_inode(struct super_block *sb); 61 - void v9fs_destroy_inode(struct inode *inode); 61 + void v9fs_free_inode(struct inode *inode); 62 62 struct inode *v9fs_get_inode(struct super_block *sb, umode_t mode, dev_t); 63 63 int v9fs_init_inode(struct v9fs_session_info *v9ses, 64 64 struct inode *inode, umode_t mode, dev_t);
+2 -8
fs/9p/vfs_inode.c
··· 253 253 } 254 254 255 255 /** 256 - * v9fs_destroy_inode - destroy an inode 256 + * v9fs_free_inode - destroy an inode 257 257 * 258 258 */ 259 259 260 - static void v9fs_i_callback(struct rcu_head *head) 260 + void v9fs_free_inode(struct inode *inode) 261 261 { 262 - struct inode *inode = container_of(head, struct inode, i_rcu); 263 262 kmem_cache_free(v9fs_inode_cache, V9FS_I(inode)); 264 - } 265 - 266 - void v9fs_destroy_inode(struct inode *inode) 267 - { 268 - call_rcu(&inode->i_rcu, v9fs_i_callback); 269 263 } 270 264 271 265 int v9fs_init_inode(struct v9fs_session_info *v9ses,
+2 -2
fs/9p/vfs_super.c
··· 344 344 345 345 static const struct super_operations v9fs_super_ops = { 346 346 .alloc_inode = v9fs_alloc_inode, 347 - .destroy_inode = v9fs_destroy_inode, 347 + .free_inode = v9fs_free_inode, 348 348 .statfs = simple_statfs, 349 349 .evict_inode = v9fs_evict_inode, 350 350 .show_options = v9fs_show_options, ··· 354 354 355 355 static const struct super_operations v9fs_super_ops_dotl = { 356 356 .alloc_inode = v9fs_alloc_inode, 357 - .destroy_inode = v9fs_destroy_inode, 357 + .free_inode = v9fs_free_inode, 358 358 .statfs = v9fs_statfs, 359 359 .drop_inode = v9fs_drop_inode, 360 360 .evict_inode = v9fs_evict_inode,