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

Commit 2f28f478 authored by Alexander Block's avatar Alexander Block Committed by Chris Mason
Browse files

Btrfs: pass root instead of parent_root to iterate_inode_ref



We need to pass the root that we determined earlier to iterate_inode_ref.

Reported-by: default avatarAlex Lyakas <alex.bolshoy.btrfs@gmail.com>
Signed-off-by: default avatarAlexander Block <ablock84@googlemail.com>
parent d8347fa4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3206,8 +3206,8 @@ static int process_all_refs(struct send_ctx *sctx,
		    found_key.type != key.type)
			break;

		ret = iterate_inode_ref(sctx, sctx->parent_root, path,
				&found_key, 0, cb, sctx);
		ret = iterate_inode_ref(sctx, root, path, &found_key, 0, cb,
				sctx);
		btrfs_release_path(path);
		if (ret < 0)
			goto out;