]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: do less aggressive btree readahead
authorChris Mason <chris.mason@oracle.com>
Thu, 22 Jan 2009 14:23:10 +0000 (09:23 -0500)
committerChris Mason <chris.mason@oracle.com>
Thu, 22 Jan 2009 14:23:10 +0000 (09:23 -0500)
commit44fd6648aab6293c05f7675f1f911d84a39aa5d6
treef4e0c852d4462574ade5e965585647e7a253abe3
parent3ed834ac1f98acf5f00588e32f5a00bdeb7bd214
Btrfs: do less aggressive btree readahead

Just before reading a leaf, btrfs scans the node for blocks that are
close by and reads them too.  It tries to build up a large window
of IO looking for blocks that are within a max distance from the top
and bottom of the IO window.

This patch changes things to just look for blocks within 64k of the
target block.  It will trigger less IO and make for lower latencies on
the read size.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c