X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=ldiskfs%2Fkernel_patches%2Fpatches%2Fext4-prealloc-rhel6.patch;h=70023d6bc31cfac3a2641c691a9f49863aa9592a;hb=79ec0a1df07733183f19d71813f99306b31f3636;hp=dd3252d9ee79cf9c7c99671276c320a999277711;hpb=e550abd05cf7ffddaedbef996be1baaae0912b4a;p=fs%2Flustre-release.git diff --git a/ldiskfs/kernel_patches/patches/ext4-prealloc-rhel6.patch b/ldiskfs/kernel_patches/patches/ext4-prealloc-rhel6.patch index dd3252d..70023d6 100644 --- a/ldiskfs/kernel_patches/patches/ext4-prealloc-rhel6.patch +++ b/ldiskfs/kernel_patches/patches/ext4-prealloc-rhel6.patch @@ -18,6 +18,20 @@ Index: linux-stage/fs/ext4/ext4.h unsigned int s_mb_group_prealloc; unsigned int s_max_writeback_mb_bump; /* where last allocation was done - for stream allocation */ +Index: linux-stage/fs/ext4/inode.c +=================================================================== +@@ -3028,6 +3028,11 @@ static int ext4_da_writepages(struct add + if (unlikely(sbi->s_mount_flags & EXT4_MF_FS_ABORTED)) + return -EROFS; + ++ if (wbc->nr_to_write < sbi->s_mb_small_req) { ++ nr_to_writebump = sbi->s_mb_small_req - wbc->nr_to_write; ++ wbc->nr_to_write = sbi->s_mb_small_req; ++ } ++ + if (wbc->range_start == 0 && wbc->range_end == LLONG_MAX) + range_whole = 1; + Index: linux-stage/fs/ext4/mballoc.c =================================================================== --- linux-stage.orig/fs/ext4/mballoc.c 2011-03-11 14:03:32.000000000 +0800