From 3ac4425095cda0f1331f50a71213ec20091c59f2 Mon Sep 17 00:00:00 2001 From: Johann Lombardi Date: Fri, 23 Jul 2010 23:54:55 +0200 Subject: [PATCH] b=23368 disable DELALLOC by default for RHEL5/ext4 i=yangsheng As for SLES11, we should disabled delayed allocation by default since it is known to be buggy. --- .../patches/ext4-disable-delalloc-rhel5.patch | 20 ++++++++++++++++++++ .../series/ldiskfs-2.6-rhel5-ext4.series | 1 + 2 files changed, 21 insertions(+) create mode 100644 ldiskfs/kernel_patches/patches/ext4-disable-delalloc-rhel5.patch diff --git a/ldiskfs/kernel_patches/patches/ext4-disable-delalloc-rhel5.patch b/ldiskfs/kernel_patches/patches/ext4-disable-delalloc-rhel5.patch new file mode 100644 index 0000000..40696db --- /dev/null +++ b/ldiskfs/kernel_patches/patches/ext4-disable-delalloc-rhel5.patch @@ -0,0 +1,20 @@ +Disable the DELALLOC feature because it is not robust in ext4 versions < 2.6.31. + +-- +Index: linux-stage/fs/ext4/super.c +=================================================================== +--- linux-stage.orig/fs/ext4/super.c ++++ linux-stage/fs/ext4/super.c +@@ -2913,12 +2913,6 @@ static int ext4_fill_super(struct super_ + if (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_EXTENTS)) + set_opt(sbi->s_mount_opt, EXTENTS); + +- /* +- * enable delayed allocation by default +- * Use -o nodelalloc to turn it off +- */ +- set_opt(sbi->s_mount_opt, DELALLOC); +- + if (!parse_options((char *) data, sb, &journal_devnum, + &journal_ioprio, NULL, 0)) + goto failed_mount; diff --git a/ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel5-ext4.series b/ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel5-ext4.series index fced48a..2b3c3d6 100644 --- a/ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel5-ext4.series +++ b/ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel5-ext4.series @@ -31,3 +31,4 @@ ext4-mballoc-skip-grps.patch ext4-back-dquot-to-rhel54.patch ext4-disable-mb-cache-rhel5.patch ext4-remove-extents-warning-rhel5.patch +ext4-disable-delalloc-rhel5.patch -- 1.8.3.1