commit | 0bd40a718444b28793283b70286f9e29d464a189 | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Thu Jul 17 12:54:43 2008 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Thu Sep 25 11:04:04 2008 -0400 |
tree | 3260a86b95d060465b46f1cc0ca4691ebdd9d100 | |
parent | ee6e6504e147a59a9f4d582662c105e9d72ae638 [diff] [blame] |
btrfs_next_leaf: do readahead when skip_locking is turned on Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c index bbf9bf3..cdc7130 100644 --- a/fs/btrfs/ctree.c +++ b/fs/btrfs/ctree.c
@@ -3206,7 +3206,8 @@ free_extent_buffer(next); } - if (level == 1 && path->locks[1] && path->reada) + if (level == 1 && (path->locks[1] || path->skip_locking) && + path->reada) reada_for_search(root, path, level, slot, 0); next = read_node_slot(root, c, slot);