diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-06-07 13:16:22 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-08-09 16:48:30 -0400 |
commit | 0930fcc1ee2f0a810b938bc283a3a262d7adccbb (patch) | |
tree | 5e5d10894f1e31a7aede75110b43d7a41347631d /fs/ext4/super.c | |
parent | 7da08fd17a6e42d80f0f3897a5cbd682e77bcdb4 (diff) |
convert ext4 to ->evict_inode()
pretty much brute-force...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 4e8983a9811b..f627a6a4c317 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -813,8 +813,10 @@ static void destroy_inodecache(void) | |||
813 | kmem_cache_destroy(ext4_inode_cachep); | 813 | kmem_cache_destroy(ext4_inode_cachep); |
814 | } | 814 | } |
815 | 815 | ||
816 | static void ext4_clear_inode(struct inode *inode) | 816 | void ext4_clear_inode(struct inode *inode) |
817 | { | 817 | { |
818 | invalidate_inode_buffers(inode); | ||
819 | end_writeback(inode); | ||
818 | dquot_drop(inode); | 820 | dquot_drop(inode); |
819 | ext4_discard_preallocations(inode); | 821 | ext4_discard_preallocations(inode); |
820 | if (EXT4_JOURNAL(inode)) | 822 | if (EXT4_JOURNAL(inode)) |
@@ -1100,14 +1102,13 @@ static const struct super_operations ext4_sops = { | |||
1100 | .destroy_inode = ext4_destroy_inode, | 1102 | .destroy_inode = ext4_destroy_inode, |
1101 | .write_inode = ext4_write_inode, | 1103 | .write_inode = ext4_write_inode, |
1102 | .dirty_inode = ext4_dirty_inode, | 1104 | .dirty_inode = ext4_dirty_inode, |
1103 | .delete_inode = ext4_delete_inode, | 1105 | .evict_inode = ext4_evict_inode, |
1104 | .put_super = ext4_put_super, | 1106 | .put_super = ext4_put_super, |
1105 | .sync_fs = ext4_sync_fs, | 1107 | .sync_fs = ext4_sync_fs, |
1106 | .freeze_fs = ext4_freeze, | 1108 | .freeze_fs = ext4_freeze, |
1107 | .unfreeze_fs = ext4_unfreeze, | 1109 | .unfreeze_fs = ext4_unfreeze, |
1108 | .statfs = ext4_statfs, | 1110 | .statfs = ext4_statfs, |
1109 | .remount_fs = ext4_remount, | 1111 | .remount_fs = ext4_remount, |
1110 | .clear_inode = ext4_clear_inode, | ||
1111 | .show_options = ext4_show_options, | 1112 | .show_options = ext4_show_options, |
1112 | #ifdef CONFIG_QUOTA | 1113 | #ifdef CONFIG_QUOTA |
1113 | .quota_read = ext4_quota_read, | 1114 | .quota_read = ext4_quota_read, |
@@ -1121,12 +1122,11 @@ static const struct super_operations ext4_nojournal_sops = { | |||
1121 | .destroy_inode = ext4_destroy_inode, | 1122 | .destroy_inode = ext4_destroy_inode, |
1122 | .write_inode = ext4_write_inode, | 1123 | .write_inode = ext4_write_inode, |
1123 | .dirty_inode = ext4_dirty_inode, | 1124 | .dirty_inode = ext4_dirty_inode, |
1124 | .delete_inode = ext4_delete_inode, | 1125 | .evict_inode = ext4_evict_inode, |
1125 | .write_super = ext4_write_super, | 1126 | .write_super = ext4_write_super, |
1126 | .put_super = ext4_put_super, | 1127 | .put_super = ext4_put_super, |
1127 | .statfs = ext4_statfs, | 1128 | .statfs = ext4_statfs, |
1128 | .remount_fs = ext4_remount, | 1129 | .remount_fs = ext4_remount, |
1129 | .clear_inode = ext4_clear_inode, | ||
1130 | .show_options = ext4_show_options, | 1130 | .show_options = ext4_show_options, |
1131 | #ifdef CONFIG_QUOTA | 1131 | #ifdef CONFIG_QUOTA |
1132 | .quota_read = ext4_quota_read, | 1132 | .quota_read = ext4_quota_read, |