[Btrfs-devel] fix block readahead in btrfs_next_leaf
Chris Mason
chris.mason at oracle.com
Mon Aug 27 06:25:09 PDT 2007
On Mon, 27 Aug 2007 21:10:01 +0800
"Yan Zheng" <yanzheng at 21cn.com> wrote:
> 2007/8/27, Chris Mason <chris.mason at oracle.com>:
>
> int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path)
> {
> reada_for_search(root, path, level, slot);
> next = read_tree_block(root,
> btrfs_node_blockptr(btrfs_buffer_node(next),
> 0)); }
> return 0;
> }
>
> I think in the second while loop, slot should set to 0.
Ah, you're right. Thanks for the clarification!
-chris
More information about the Btrfs-devel
mailing list