Skip to content
Commit a7175319 authored by Chris Mason's avatar Chris Mason
Browse files

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: default avatarChris Mason <chris.mason@oracle.com>
parent 1506fcc8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment