diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-04-15 19:27:18 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-05-01 22:43:24 -0400 |
commit | a2d1b88becd999d5bba917c04da4092e3f6ca8a8 (patch) | |
tree | 4cc3ec9974e81ddcccd3781c6200566dbbaab789 | |
parent | f415c51123b83e2af2ccc59dccfd5e09d1557ef7 (diff) |
ext2: switch to ->free_inode()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/ext2/super.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 0128010a0874..3988633789cb 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
@@ -192,17 +192,11 @@ static struct inode *ext2_alloc_inode(struct super_block *sb) | |||
192 | return &ei->vfs_inode; | 192 | return &ei->vfs_inode; |
193 | } | 193 | } |
194 | 194 | ||
195 | static void ext2_i_callback(struct rcu_head *head) | 195 | static void ext2_free_in_core_inode(struct inode *inode) |
196 | { | 196 | { |
197 | struct inode *inode = container_of(head, struct inode, i_rcu); | ||
198 | kmem_cache_free(ext2_inode_cachep, EXT2_I(inode)); | 197 | kmem_cache_free(ext2_inode_cachep, EXT2_I(inode)); |
199 | } | 198 | } |
200 | 199 | ||
201 | static void ext2_destroy_inode(struct inode *inode) | ||
202 | { | ||
203 | call_rcu(&inode->i_rcu, ext2_i_callback); | ||
204 | } | ||
205 | |||
206 | static void init_once(void *foo) | 200 | static void init_once(void *foo) |
207 | { | 201 | { |
208 | struct ext2_inode_info *ei = (struct ext2_inode_info *) foo; | 202 | struct ext2_inode_info *ei = (struct ext2_inode_info *) foo; |
@@ -351,7 +345,7 @@ static const struct quotactl_ops ext2_quotactl_ops = { | |||
351 | 345 | ||
352 | static const struct super_operations ext2_sops = { | 346 | static const struct super_operations ext2_sops = { |
353 | .alloc_inode = ext2_alloc_inode, | 347 | .alloc_inode = ext2_alloc_inode, |
354 | .destroy_inode = ext2_destroy_inode, | 348 | .free_inode = ext2_free_in_core_inode, |
355 | .write_inode = ext2_write_inode, | 349 | .write_inode = ext2_write_inode, |
356 | .evict_inode = ext2_evict_inode, | 350 | .evict_inode = ext2_evict_inode, |
357 | .put_super = ext2_put_super, | 351 | .put_super = ext2_put_super, |