Skip to content

Commit

Permalink
fix block readahead in btrfs_next_leaf
Browse files Browse the repository at this point in the history
Send the correct slot down to reada_for_search

Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Yan authored and David Woodhouse committed Aug 27, 2007
1 parent 6d626f6 commit 3202061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/ctree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 3202061

Please sign in to comment.