fix block readahead in btrfs_next_leaf
authorYan <yanzheng@21cn.com>
Mon, 27 Aug 2007 19:17:54 +0000 (15:17 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Mon, 27 Aug 2007 19:17:54 +0000 (15:17 -0400)
Send the correct slot down to reada_for_search

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ctree.c

index 7cf43da5e78e20f62840ec07276307fdccc14829..51eea5ccb64572e74345b2bf162216ce79d07805 100644 (file)
@@ -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));
        }