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: https://git.stricted.de/?a=commitdiff_plain;h=bc0b75f77a944b482293972eb8fd5c88c576eb46;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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);