|
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,7 +361,7 @@ static int hfsplus_remount(struct super_block *sb, int *flags, char *data) |
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,18 +628,11 @@ static struct inode *hfsplus_alloc_inode(struct super_block *sb) |
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 | 634 | } |
637 | 635 |
|
638 | | -static void hfsplus_destroy_inode(struct inode *inode) |
639 | | -{ |
640 | | - call_rcu(&inode->i_rcu, hfsplus_i_callback); |
641 | | -} |
642 | | - |
643 | 636 | #define HFSPLUS_INODE_SIZE sizeof(struct hfsplus_inode_info) |
644 | 637 |
|
645 | 638 | static struct dentry *hfsplus_mount(struct file_system_type *fs_type, |
|
0 commit comments