Skip to content

Commit d7ff00f

Browse files
josefbacikkdave
authored andcommitted
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 <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent cd22a51 commit d7ff00f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/btrfs/relocation.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,8 +743,6 @@ struct backref_node *build_backref_tree(struct reloc_control *rc,
743743
err = -ENOMEM;
744744
goto out;
745745
}
746-
path1->reada = READA_FORWARD;
747-
path2->reada = READA_FORWARD;
748746

749747
node = alloc_backref_node(cache);
750748
if (!node) {

0 commit comments

Comments
 (0)