From: Josef Bacik Date: Fri, 13 Mar 2020 21:09:54 +0000 (-0400) Subject: btrfs: do not readahead in build_backref_tree X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d7ff00f6082c8578a26d75f2ca1aa28b8f05901e;p=linux.git 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 Signed-off-by: Josef Bacik Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 7f31dd57de541..63b11e546a875 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -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) {