mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 16:46:45 +07: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
@ -743,8 +743,6 @@ struct backref_node *build_backref_tree(struct reloc_control *rc,
|
||||
err = -ENOMEM;
|
||||
goto out;
|
||||
}
|
||||
path1->reada = READA_FORWARD;
|
||||
path2->reada = READA_FORWARD;
|
||||
|
||||
node = alloc_backref_node(cache);
|
||||
if (!node) {
|
||||
|
Loading…
Reference in New Issue
Block a user