aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext2/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext2/super.c')
-rw-r--r--fs/ext2/super.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c
index 37ca77a157ba..661c3d98d946 100644
--- a/fs/ext2/super.c
+++ b/fs/ext2/super.c
@@ -198,11 +198,8 @@ static void ext2_clear_inode(struct inode *inode)
198 ei->i_default_acl = EXT2_ACL_NOT_CACHED; 198 ei->i_default_acl = EXT2_ACL_NOT_CACHED;
199 } 199 }
200#endif 200#endif
201 if (!is_bad_inode(inode))
202 ext2_discard_prealloc(inode);
203} 201}
204 202
205
206#ifdef CONFIG_QUOTA 203#ifdef CONFIG_QUOTA
207static ssize_t ext2_quota_read(struct super_block *sb, int type, char *data, size_t len, loff_t off); 204static ssize_t ext2_quota_read(struct super_block *sb, int type, char *data, size_t len, loff_t off);
208static ssize_t ext2_quota_write(struct super_block *sb, int type, const char *data, size_t len, loff_t off); 205static ssize_t ext2_quota_write(struct super_block *sb, int type, const char *data, size_t len, loff_t off);
@@ -213,6 +210,7 @@ static struct super_operations ext2_sops = {
213 .destroy_inode = ext2_destroy_inode, 210 .destroy_inode = ext2_destroy_inode,
214 .read_inode = ext2_read_inode, 211 .read_inode = ext2_read_inode,
215 .write_inode = ext2_write_inode, 212 .write_inode = ext2_write_inode,
213 .put_inode = ext2_put_inode,
216 .delete_inode = ext2_delete_inode, 214 .delete_inode = ext2_delete_inode,
217 .put_super = ext2_put_super, 215 .put_super = ext2_put_super,
218 .write_super = ext2_write_super, 216 .write_super = ext2_write_super,