diff options
author | Badari Pulavarty <pbadari@us.ibm.com> | 2006-09-15 20:07:18 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-10-13 22:50:10 +0400 |
commit | cfb3f12260beaf5dc8f765a1c191822896019d8a (patch) | |
tree | 4072cfccf3bcd84ed74c86afc2e25280332bd946 | |
parent | 63a17cfcfce2888f55f16e2d1e1c587351fffa38 (diff) | |
download | linux-cfb3f12260beaf5dc8f765a1c191822896019d8a.tar.xz |
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:
-rw-r--r-- | fs/ext3/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index 21b8bf4ee861..f9be16e3393e 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 */ |