Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32020611 authored by Yan's avatar Yan Committed by David Woodhouse
Browse files

fix block readahead in btrfs_next_leaf



Send the correct slot down to reada_for_search

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 6d626f65
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2120,7 +2120,7 @@ int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path)
		if (!level)
			break;
		if (path->reada)
			reada_for_search(root, path, level, slot);
			reada_for_search(root, path, level, 0);
		next = read_tree_block(root,
		       btrfs_node_blockptr(btrfs_buffer_node(next), 0));
	}