/* set all locked nodes in the path to blocking locks. This should be done before scheduling  */
noinline void btrfs_set_path_blocking(struct btrfs_path *p)
/* set all locked nodes in the path to blocking locks. This should be done before scheduling  */
noinline void btrfs_set_path_blocking(struct btrfs_path *p)
{
	int i;
	for (i = 0; i < BTRFS_MAX_LEVEL; i++) {
		if (p->nodes[i] && p->locks[i])
			btrfs_set_lock_blocking(p->nodes[i]);
	}
}