diff options
Diffstat (limited to 'fs/efs')
| -rw-r--r-- | fs/efs/super.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/efs/super.c b/fs/efs/super.c index 5073a07652cc..0f31acb0131c 100644 --- a/fs/efs/super.c +++ b/fs/efs/super.c | |||
| @@ -65,11 +65,18 @@ static struct inode *efs_alloc_inode(struct super_block *sb) | |||
| 65 | return &ei->vfs_inode; | 65 | return &ei->vfs_inode; |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | static void efs_destroy_inode(struct inode *inode) | 68 | static void efs_i_callback(struct rcu_head *head) |
| 69 | { | 69 | { |
| 70 | struct inode *inode = container_of(head, struct inode, i_rcu); | ||
| 71 | INIT_LIST_HEAD(&inode->i_dentry); | ||
| 70 | kmem_cache_free(efs_inode_cachep, INODE_INFO(inode)); | 72 | kmem_cache_free(efs_inode_cachep, INODE_INFO(inode)); |
| 71 | } | 73 | } |
| 72 | 74 | ||
| 75 | static void efs_destroy_inode(struct inode *inode) | ||
| 76 | { | ||
| 77 | call_rcu(&inode->i_rcu, efs_i_callback); | ||
| 78 | } | ||
| 79 | |||
| 73 | static void init_once(void *foo) | 80 | static void init_once(void *foo) |
| 74 | { | 81 | { |
| 75 | struct efs_inode_info *ei = (struct efs_inode_info *) foo; | 82 | struct efs_inode_info *ei = (struct efs_inode_info *) foo; |
