diff options
author | Yan <yanzheng@21cn.com> | 2007-08-27 15:17:54 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-08-27 15:17:54 -0400 |
commit | 320206112895c72f98e57570ae194689dcd7fe56 (patch) | |
tree | 5b87e58572cb2df8bf7bec8445a9b4fb72423c1a /fs/btrfs/ctree.c | |
parent | 6d626f65041e3f99d2ec78c8437dd2195210d6b2 (diff) |
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>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r-- | fs/btrfs/ctree.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
2120 | if (!level) | 2120 | if (!level) |
2121 | break; | 2121 | break; |
2122 | if (path->reada) | 2122 | if (path->reada) |
2123 | reada_for_search(root, path, level, slot); | 2123 | reada_for_search(root, path, level, 0); |
2124 | next = read_tree_block(root, | 2124 | next = read_tree_block(root, |
2125 | btrfs_node_blockptr(btrfs_buffer_node(next), 0)); | 2125 | btrfs_node_blockptr(btrfs_buffer_node(next), 0)); |
2126 | } | 2126 | } |