From cfb3f12260beaf5dc8f765a1c191822896019d8a Mon Sep 17 00:00:00 2001 From: Badari Pulavarty Date: Fri, 15 Sep 2006 09:07:18 -0700 Subject: [PATCH] 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: --- fs/ext3/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index 21b8bf4ee86..f9be16e3393 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 */ -- 2.11.4.GIT