summaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-09-17 22:54:36 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-09-17 22:54:36 -0400
commitbc0b75f77a944b482293972eb8fd5c88c576eb46 (patch)
treef8b9db8e74b3153fe350404c5ae979335c1e9c7d /fs/ext4/super.c
parent5e7bbef19c8385895cb21c41a88bd937902e6316 (diff)
downloadop-kernel-dev-bc0b75f77a944b482293972eb8fd5c88c576eb46.zip
op-kernel-dev-bc0b75f77a944b482293972eb8fd5c88c576eb46.tar.gz
ext4: do not enable delalloc by default for ext2
Signed-off-by: Brian Foster <bfoster@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index eb7722a..e6784b3 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3411,7 +3411,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)
* enable delayed allocation by default
* Use -o nodelalloc to turn it off
*/
- if (!IS_EXT3_SB(sb) &&
+ if (!IS_EXT3_SB(sb) && !IS_EXT2_SB(sb) &&
((def_mount_opts & EXT4_DEFM_NODELALLOC) == 0))
set_opt(sb, DELALLOC);
OpenPOWER on IntegriCloud