Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bd40a71 authored by Chris Mason's avatar Chris Mason
Browse files

btrfs_next_leaf: do readahead when skip_locking is turned on

parent ee6e6504
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);