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

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
...@@ -3206,8 +3206,8 @@ static int process_all_refs(struct send_ctx *sctx, ...@@ -3206,8 +3206,8 @@ static int process_all_refs(struct send_ctx *sctx,
found_key.type != key.type) found_key.type != key.type)
break; break;
ret = iterate_inode_ref(sctx, sctx->parent_root, path, ret = iterate_inode_ref(sctx, root, path, &found_key, 0, cb,
&found_key, 0, cb, sctx); sctx);
btrfs_release_path(path); btrfs_release_path(path);
if (ret < 0) if (ret < 0)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment