diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-04-15 22:22:40 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-05-01 22:43:25 -0400 |
commit | 56b5af19318f051eefb46711e82a092da8cc0d3d (patch) | |
tree | 37a5a786bcf1c534e305aff30b819bf2bbaee3dd | |
parent | bcb8d71bda471b6822549264577e10fe9d54884b (diff) |
squashfs: switch to ->free_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/squashfs/super.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/fs/squashfs/super.c b/fs/squashfs/super.c index 40e657386fa5..767046d9f65d 100644 --- a/fs/squashfs/super.c +++ b/fs/squashfs/super.c | |||
@@ -473,18 +473,11 @@ static struct inode *squashfs_alloc_inode(struct super_block *sb) | |||
473 | } | 473 | } |
474 | 474 | ||
475 | 475 | ||
476 | static void squashfs_i_callback(struct rcu_head *head) | 476 | static void squashfs_free_inode(struct inode *inode) |
477 | { | 477 | { |
478 | struct inode *inode = container_of(head, struct inode, i_rcu); | ||
479 | kmem_cache_free(squashfs_inode_cachep, squashfs_i(inode)); | 478 | kmem_cache_free(squashfs_inode_cachep, squashfs_i(inode)); |
480 | } | 479 | } |
481 | 480 | ||
482 | static void squashfs_destroy_inode(struct inode *inode) | ||
483 | { | ||
484 | call_rcu(&inode->i_rcu, squashfs_i_callback); | ||
485 | } | ||
486 | |||
487 | |||
488 | static struct file_system_type squashfs_fs_type = { | 481 | static struct file_system_type squashfs_fs_type = { |
489 | .owner = THIS_MODULE, | 482 | .owner = THIS_MODULE, |
490 | .name = "squashfs", | 483 | .name = "squashfs", |
@@ -496,7 +489,7 @@ MODULE_ALIAS_FS("squashfs"); | |||
496 | 489 | ||
497 | static const struct super_operations squashfs_super_ops = { | 490 | static const struct super_operations squashfs_super_ops = { |
498 | .alloc_inode = squashfs_alloc_inode, | 491 | .alloc_inode = squashfs_alloc_inode, |
499 | .destroy_inode = squashfs_destroy_inode, | 492 | .free_inode = squashfs_free_inode, |
500 | .statfs = squashfs_statfs, | 493 | .statfs = squashfs_statfs, |
501 | .put_super = squashfs_put_super, | 494 | .put_super = squashfs_put_super, |
502 | .remount_fs = squashfs_remount | 495 | .remount_fs = squashfs_remount |