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-Tag: v3.7-rc3~47^2~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc0b75f77a944b482293972eb8fd5c88c576eb46;p=platform%2Fupstream%2Fkernel-adaptation-pc.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 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);