mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
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>
This commit is contained in:
parent
cd22a51c66
commit
d7ff00f608
1 changed files with 0 additions and 2 deletions
|
@ -743,8 +743,6 @@ struct backref_node *build_backref_tree(struct reloc_control *rc,
|
||||||
err = -ENOMEM;
|
err = -ENOMEM;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
path1->reada = READA_FORWARD;
|
|
||||||
path2->reada = READA_FORWARD;
|
|
||||||
|
|
||||||
node = alloc_backref_node(cache);
|
node = alloc_backref_node(cache);
|
||||||
if (!node) {
|
if (!node) {
|
||||||
|
|
Loading…
Reference in a new issue