ext4: do not enable delalloc by default for ext2
authorTheodore Ts'o <tytso@mit.edu>
Tue, 18 Sep 2012 02:54:36 +0000 (22:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 18 Sep 2012 02:54:36 +0000 (22:54 -0400)
Signed-off-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c

index eb7722ab771cb5c7a541e23080a1ff21ca5396fd..e6784b3276beb52ee67c6c630376b7396574f183 100644 (file)
@@ -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);