diff options
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 8d65575f8c8c..26147746c272 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -868,8 +868,10 @@ static void destroy_inodecache(void) | |||
868 | kmem_cache_destroy(ext4_inode_cachep); | 868 | kmem_cache_destroy(ext4_inode_cachep); |
869 | } | 869 | } |
870 | 870 | ||
871 | static void ext4_clear_inode(struct inode *inode) | 871 | void ext4_clear_inode(struct inode *inode) |
872 | { | 872 | { |
873 | invalidate_inode_buffers(inode); | ||
874 | end_writeback(inode); | ||
873 | dquot_drop(inode); | 875 | dquot_drop(inode); |
874 | ext4_discard_preallocations(inode); | 876 | ext4_discard_preallocations(inode); |
875 | if (EXT4_JOURNAL(inode)) | 877 | if (EXT4_JOURNAL(inode)) |
@@ -1158,14 +1160,13 @@ static const struct super_operations ext4_sops = { | |||
1158 | .destroy_inode = ext4_destroy_inode, | 1160 | .destroy_inode = ext4_destroy_inode, |
1159 | .write_inode = ext4_write_inode, | 1161 | .write_inode = ext4_write_inode, |
1160 | .dirty_inode = ext4_dirty_inode, | 1162 | .dirty_inode = ext4_dirty_inode, |
1161 | .delete_inode = ext4_delete_inode, | 1163 | .evict_inode = ext4_evict_inode, |
1162 | .put_super = ext4_put_super, | 1164 | .put_super = ext4_put_super, |
1163 | .sync_fs = ext4_sync_fs, | 1165 | .sync_fs = ext4_sync_fs, |
1164 | .freeze_fs = ext4_freeze, | 1166 | .freeze_fs = ext4_freeze, |
1165 | .unfreeze_fs = ext4_unfreeze, | 1167 | .unfreeze_fs = ext4_unfreeze, |
1166 | .statfs = ext4_statfs, | 1168 | .statfs = ext4_statfs, |
1167 | .remount_fs = ext4_remount, | 1169 | .remount_fs = ext4_remount, |
1168 | .clear_inode = ext4_clear_inode, | ||
1169 | .show_options = ext4_show_options, | 1170 | .show_options = ext4_show_options, |
1170 | #ifdef CONFIG_QUOTA | 1171 | #ifdef CONFIG_QUOTA |
1171 | .quota_read = ext4_quota_read, | 1172 | .quota_read = ext4_quota_read, |
@@ -1179,12 +1180,11 @@ static const struct super_operations ext4_nojournal_sops = { | |||
1179 | .destroy_inode = ext4_destroy_inode, | 1180 | .destroy_inode = ext4_destroy_inode, |
1180 | .write_inode = ext4_write_inode, | 1181 | .write_inode = ext4_write_inode, |
1181 | .dirty_inode = ext4_dirty_inode, | 1182 | .dirty_inode = ext4_dirty_inode, |
1182 | .delete_inode = ext4_delete_inode, | 1183 | .evict_inode = ext4_evict_inode, |
1183 | .write_super = ext4_write_super, | 1184 | .write_super = ext4_write_super, |
1184 | .put_super = ext4_put_super, | 1185 | .put_super = ext4_put_super, |
1185 | .statfs = ext4_statfs, | 1186 | .statfs = ext4_statfs, |
1186 | .remount_fs = ext4_remount, | 1187 | .remount_fs = ext4_remount, |
1187 | .clear_inode = ext4_clear_inode, | ||
1188 | .show_options = ext4_show_options, | 1188 | .show_options = ext4_show_options, |
1189 | #ifdef CONFIG_QUOTA | 1189 | #ifdef CONFIG_QUOTA |
1190 | .quota_read = ext4_quota_read, | 1190 | .quota_read = ext4_quota_read, |