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

hfsplus: switch to ->free_inode()

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

Al Viro 08ab2293 6d845e22

+3 -10
+3 -10
fs/hfsplus/super.c
··· 18 18 #include <linux/nls.h> 19 19 20 20 static struct inode *hfsplus_alloc_inode(struct super_block *sb); 21 - static void hfsplus_destroy_inode(struct inode *inode); 21 + static void hfsplus_free_inode(struct inode *inode); 22 22 23 23 #include "hfsplus_fs.h" 24 24 #include "xattr.h" ··· 361 361 362 362 static const struct super_operations hfsplus_sops = { 363 363 .alloc_inode = hfsplus_alloc_inode, 364 - .destroy_inode = hfsplus_destroy_inode, 364 + .free_inode = hfsplus_free_inode, 365 365 .write_inode = hfsplus_write_inode, 366 366 .evict_inode = hfsplus_evict_inode, 367 367 .put_super = hfsplus_put_super, ··· 628 628 return i ? &i->vfs_inode : NULL; 629 629 } 630 630 631 - static void hfsplus_i_callback(struct rcu_head *head) 631 + static void hfsplus_free_inode(struct inode *inode) 632 632 { 633 - struct inode *inode = container_of(head, struct inode, i_rcu); 634 - 635 633 kmem_cache_free(hfsplus_inode_cachep, HFSPLUS_I(inode)); 636 - } 637 - 638 - static void hfsplus_destroy_inode(struct inode *inode) 639 - { 640 - call_rcu(&inode->i_rcu, hfsplus_i_callback); 641 634 } 642 635 643 636 #define HFSPLUS_INODE_SIZE sizeof(struct hfsplus_inode_info)