aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-07-17 12:54:43 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:04 -0400
commit0bd40a718444b28793283b70286f9e29d464a189 (patch)
tree3260a86b95d060465b46f1cc0ca4691ebdd9d100
parentee6e6504e147a59a9f4d582662c105e9d72ae638 (diff)
btrfs_next_leaf: do readahead when skip_locking is turned on
Signed-off-by: Chris Mason <chris.mason@oracle.com>
-rw-r--r--fs/btrfs/ctree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index bbf9bf374066..cdc713062b03 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -3206,7 +3206,8 @@ int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path)
3206 free_extent_buffer(next); 3206 free_extent_buffer(next);
3207 } 3207 }
3208 3208
3209 if (level == 1 && path->locks[1] && path->reada) 3209 if (level == 1 && (path->locks[1] || path->skip_locking) &&
3210 path->reada)
3210 reada_for_search(root, path, level, slot, 0); 3211 reada_for_search(root, path, level, slot, 0);
3211 3212
3212 next = read_node_slot(root, c, slot); 3213 next = read_node_slot(root, c, slot);