From: Chris Mason Date: Thu, 17 Jul 2008 16:54:43 +0000 (-0400) Subject: btrfs_next_leaf: do readahead when skip_locking is turned on X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0bd40a718444b28793283b70286f9e29d464a189;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git btrfs_next_leaf: do readahead when skip_locking is turned on Signed-off-by: Chris Mason --- 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) 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);