diff options
Diffstat (limited to 'fs/qnx6/inode.c')
-rw-r--r-- | fs/qnx6/inode.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/fs/qnx6/inode.c b/fs/qnx6/inode.c index 4aeb26bcb4d0..59cf45f6be49 100644 --- a/fs/qnx6/inode.c +++ b/fs/qnx6/inode.c | |||
@@ -29,14 +29,14 @@ static const struct super_operations qnx6_sops; | |||
29 | 29 | ||
30 | static void qnx6_put_super(struct super_block *sb); | 30 | static void qnx6_put_super(struct super_block *sb); |
31 | static struct inode *qnx6_alloc_inode(struct super_block *sb); | 31 | static struct inode *qnx6_alloc_inode(struct super_block *sb); |
32 | static void qnx6_destroy_inode(struct inode *inode); | 32 | static void qnx6_free_inode(struct inode *inode); |
33 | static int qnx6_remount(struct super_block *sb, int *flags, char *data); | 33 | static int qnx6_remount(struct super_block *sb, int *flags, char *data); |
34 | static int qnx6_statfs(struct dentry *dentry, struct kstatfs *buf); | 34 | static int qnx6_statfs(struct dentry *dentry, struct kstatfs *buf); |
35 | static int qnx6_show_options(struct seq_file *seq, struct dentry *root); | 35 | static int qnx6_show_options(struct seq_file *seq, struct dentry *root); |
36 | 36 | ||
37 | static const struct super_operations qnx6_sops = { | 37 | static const struct super_operations qnx6_sops = { |
38 | .alloc_inode = qnx6_alloc_inode, | 38 | .alloc_inode = qnx6_alloc_inode, |
39 | .destroy_inode = qnx6_destroy_inode, | 39 | .free_inode = qnx6_free_inode, |
40 | .put_super = qnx6_put_super, | 40 | .put_super = qnx6_put_super, |
41 | .statfs = qnx6_statfs, | 41 | .statfs = qnx6_statfs, |
42 | .remount_fs = qnx6_remount, | 42 | .remount_fs = qnx6_remount, |
@@ -602,17 +602,11 @@ static struct inode *qnx6_alloc_inode(struct super_block *sb) | |||
602 | return &ei->vfs_inode; | 602 | return &ei->vfs_inode; |
603 | } | 603 | } |
604 | 604 | ||
605 | static void qnx6_i_callback(struct rcu_head *head) | 605 | static void qnx6_free_inode(struct inode *inode) |
606 | { | 606 | { |
607 | struct inode *inode = container_of(head, struct inode, i_rcu); | ||
608 | kmem_cache_free(qnx6_inode_cachep, QNX6_I(inode)); | 607 | kmem_cache_free(qnx6_inode_cachep, QNX6_I(inode)); |
609 | } | 608 | } |
610 | 609 | ||
611 | static void qnx6_destroy_inode(struct inode *inode) | ||
612 | { | ||
613 | call_rcu(&inode->i_rcu, qnx6_i_callback); | ||
614 | } | ||
615 | |||
616 | static void init_once(void *foo) | 610 | static void init_once(void *foo) |
617 | { | 611 | { |
618 | struct qnx6_inode_info *ei = (struct qnx6_inode_info *) foo; | 612 | struct qnx6_inode_info *ei = (struct qnx6_inode_info *) foo; |