提交 32020611 编写于 作者: Y Yan 提交者: David Woodhouse

fix block readahead in btrfs_next_leaf

Send the correct slot down to reada_for_search
Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 6d626f65
......@@ -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));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册