From: Theodore Ts'o Date: Tue, 18 Sep 2012 02:54:36 +0000 (-0400) Subject: ext4: do not enable delalloc by default for ext2 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bc0b75f77a944b482293972eb8fd5c88c576eb46;p=openwrt%2Fstaging%2Fblogic.git ext4: do not enable delalloc by default for ext2 Signed-off-by: Brian Foster Signed-off-by: "Theodore Ts'o" --- 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);