From: Yan Date: Mon, 27 Aug 2007 19:17:54 +0000 (-0400) Subject: fix block readahead in btrfs_next_leaf X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=320206112895c72f98e57570ae194689dcd7fe56;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fix block readahead in btrfs_next_leaf Send the correct slot down to reada_for_search Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index 7cf43da5e78e..51eea5ccb645 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c @@ -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)); }