提交 0bd40a71 编写于 作者: C Chris Mason

btrfs_next_leaf: do readahead when skip_locking is turned on

Signed-off-by: NChris Mason <chris.mason@oracle.com>
上级 ee6e6504
......@@ -3206,7 +3206,8 @@ int btrfs_next_leaf(struct btrfs_root *root, struct btrfs_path *path)
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册