]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdd60dd7613f41f9978e031eebde5aaf9f90f0796
tree8ebc8fb4d2ac90272ebfa310e1ea9e6e89085d2b
parente2da8d6a8c1558c577b328fc8ed47cea53191fd6
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