Whamcloud - gitweb
b=23368 disable DELALLOC by default for RHEL5/ext4
authorJohann Lombardi <johann.lombardi@oracle.com>
Fri, 23 Jul 2010 21:54:55 +0000 (23:54 +0200)
committerJohann Lombardi <johann.lombardi@oracle.com>
Fri, 23 Jul 2010 21:56:57 +0000 (23:56 +0200)
i=yangsheng

As for SLES11, we should disabled delayed allocation by default
since it is known to be buggy.

ldiskfs/kernel_patches/patches/ext4-disable-delalloc-rhel5.patch [new file with mode: 0644]
ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel5-ext4.series

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 (file)
index 0000000..40696db
--- /dev/null
@@ -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;
index fced48a..2b3c3d6 100644 (file)
@@ -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