[Btrfs-devel] fix block readahead in btrfs_next_leaf
    Yan Zheng 
    yanzheng at 21cn.com
       
    Mon Aug 27 05:15:04 PDT 2007
    
    
  
diff -r 6125224d77d0 ctree.c
--- a/ctree.c	Fri Aug 10 16:22:09 2007 -0400
+++ b/ctree.c	Mon Aug 27 20:08:20 2007 +0800
@@ -2120,7 +2120,7 @@ int btrfs_next_leaf(struct btrfs_root *r
 		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));
 	}
Regards
YZ
    
    
More information about the Btrfs-devel
mailing list