From: Badari Pulavarty Date: Fri, 15 Sep 2006 16:07:18 +0000 (-0700) Subject: ext3 sequential read regression fix X-Git-Tag: v2.6.17.14~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfb3f12260beaf5dc8f765a1c191822896019d8a;p=thirdparty%2Fkernel%2Fstable.git ext3 sequential read regression fix ext3-get-blocks support caused ~20% degrade in Sequential read performance (tiobench). Problem is with marking the buffer boundary so IO can be submitted right away. Here is the patch to fix it. 2.6.18-rc6: --- diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index 21b8bf4ee8613..f9be16e3393ee 100644 --- a/fs/ext3/inode.c +++ b/fs/ext3/inode.c @@ -926,7 +926,7 @@ int ext3_get_blocks_handle(handle_t *handle, struct inode *inode, set_buffer_new(bh_result); got_it: map_bh(bh_result, inode->i_sb, le32_to_cpu(chain[depth-1].key)); - if (blocks_to_boundary == 0) + if (count > blocks_to_boundary) set_buffer_boundary(bh_result); err = count; /* Clean up and exit */