mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 19:06:07 +07:00
fix block readahead in btrfs_next_leaf
Send the correct slot down to reada_for_search Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
parent
6d626f6504
commit
3202061128
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user