diff options
-rw-r--r-- | fs/nfs/inode.c | 10 | ||||
-rw-r--r-- | fs/nfs/internal.h | 2 | ||||
-rw-r--r-- | fs/nfs/nfs4super.c | 2 | ||||
-rw-r--r-- | fs/nfs/super.c | 2 |
4 files changed, 5 insertions, 11 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 414a90d48493..f61af8307dc8 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -2055,17 +2055,11 @@ struct inode *nfs_alloc_inode(struct super_block *sb) | |||
2055 | } | 2055 | } |
2056 | EXPORT_SYMBOL_GPL(nfs_alloc_inode); | 2056 | EXPORT_SYMBOL_GPL(nfs_alloc_inode); |
2057 | 2057 | ||
2058 | static void nfs_i_callback(struct rcu_head *head) | 2058 | void nfs_free_inode(struct inode *inode) |
2059 | { | 2059 | { |
2060 | struct inode *inode = container_of(head, struct inode, i_rcu); | ||
2061 | kmem_cache_free(nfs_inode_cachep, NFS_I(inode)); | 2060 | kmem_cache_free(nfs_inode_cachep, NFS_I(inode)); |
2062 | } | 2061 | } |
2063 | 2062 | EXPORT_SYMBOL_GPL(nfs_free_inode); | |
2064 | void nfs_destroy_inode(struct inode *inode) | ||
2065 | { | ||
2066 | call_rcu(&inode->i_rcu, nfs_i_callback); | ||
2067 | } | ||
2068 | EXPORT_SYMBOL_GPL(nfs_destroy_inode); | ||
2069 | 2063 | ||
2070 | static inline void nfs4_init_once(struct nfs_inode *nfsi) | 2064 | static inline void nfs4_init_once(struct nfs_inode *nfsi) |
2071 | { | 2065 | { |
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index c7cf23ae6597..331a0504eaf8 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -381,7 +381,7 @@ int nfs_check_flags(int); | |||
381 | /* inode.c */ | 381 | /* inode.c */ |
382 | extern struct workqueue_struct *nfsiod_workqueue; | 382 | extern struct workqueue_struct *nfsiod_workqueue; |
383 | extern struct inode *nfs_alloc_inode(struct super_block *sb); | 383 | extern struct inode *nfs_alloc_inode(struct super_block *sb); |
384 | extern void nfs_destroy_inode(struct inode *); | 384 | extern void nfs_free_inode(struct inode *); |
385 | extern int nfs_write_inode(struct inode *, struct writeback_control *); | 385 | extern int nfs_write_inode(struct inode *, struct writeback_control *); |
386 | extern int nfs_drop_inode(struct inode *); | 386 | extern int nfs_drop_inode(struct inode *); |
387 | extern void nfs_clear_inode(struct inode *); | 387 | extern void nfs_clear_inode(struct inode *); |
diff --git a/fs/nfs/nfs4super.c b/fs/nfs/nfs4super.c index 6fb7cb6b3f4b..689977e148cb 100644 --- a/fs/nfs/nfs4super.c +++ b/fs/nfs/nfs4super.c | |||
@@ -50,7 +50,7 @@ struct file_system_type nfs4_referral_fs_type = { | |||
50 | 50 | ||
51 | static const struct super_operations nfs4_sops = { | 51 | static const struct super_operations nfs4_sops = { |
52 | .alloc_inode = nfs_alloc_inode, | 52 | .alloc_inode = nfs_alloc_inode, |
53 | .destroy_inode = nfs_destroy_inode, | 53 | .free_inode = nfs_free_inode, |
54 | .write_inode = nfs4_write_inode, | 54 | .write_inode = nfs4_write_inode, |
55 | .drop_inode = nfs_drop_inode, | 55 | .drop_inode = nfs_drop_inode, |
56 | .statfs = nfs_statfs, | 56 | .statfs = nfs_statfs, |
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 23790c7b2289..aec4e2c4b02f 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -309,7 +309,7 @@ struct file_system_type nfs_xdev_fs_type = { | |||
309 | 309 | ||
310 | const struct super_operations nfs_sops = { | 310 | const struct super_operations nfs_sops = { |
311 | .alloc_inode = nfs_alloc_inode, | 311 | .alloc_inode = nfs_alloc_inode, |
312 | .destroy_inode = nfs_destroy_inode, | 312 | .free_inode = nfs_free_inode, |
313 | .write_inode = nfs_write_inode, | 313 | .write_inode = nfs_write_inode, |
314 | .drop_inode = nfs_drop_inode, | 314 | .drop_inode = nfs_drop_inode, |
315 | .statfs = nfs_statfs, | 315 | .statfs = nfs_statfs, |