btrfs: do not readahead in build_backref_tree
authorJosef Bacik <josef@toxicpanda.com>
Fri, 13 Mar 2020 21:09:54 +0000 (17:09 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:03:50 +0000 (17:03 +0100)
commitd7ff00f6082c8578a26d75f2ca1aa28b8f05901e
tree8ebc8fb4d2ac90272ebfa310e1ea9e6e89085d2b
parentcd22a51c6650f567f297215dd7c47c3401ee7290
btrfs: do not readahead in build_backref_tree

Here we are just searching down to the bytenr we're building the backref
tree for, and all of it's paths to the roots.  These bytenrs are not
guaranteed to be anywhere near each other, so readahead just generates
extra latency.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c