summaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorTheodore Ts'o2012-09-18 04:54:36 +0200
committerTheodore Ts'o2012-09-18 04:54:36 +0200
commitbc0b75f77a944b482293972eb8fd5c88c576eb46 (patch)
treef8b9db8e74b3153fe350404c5ae979335c1e9c7d /fs/ext4
parentext4: advertise the fact that the kernel supports meta_bg resizing (diff)
downloadkernel-qcow2-linux-bc0b75f77a944b482293972eb8fd5c88c576eb46.tar.gz
kernel-qcow2-linux-bc0b75f77a944b482293972eb8fd5c88c576eb46.tar.xz
kernel-qcow2-linux-bc0b75f77a944b482293972eb8fd5c88c576eb46.zip
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')
-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 eb7722ab771c..e6784b3276be 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);