Skip to content

Commit

Permalink
Btrfs: pass root instead of parent_root to iterate_inode_ref
Browse files Browse the repository at this point in the history
We need to pass the root that we determined earlier to iterate_inode_ref.

Reported-by: Alex Lyakas <alex.bolshoy.btrfs@gmail.com>
Signed-off-by: Alexander Block <ablock84@googlemail.com>
  • Loading branch information
Alexander Block authored and Chris Mason committed Oct 1, 2012
1 parent d8347fa commit 2f28f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/btrfs/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2f28f47

Please sign in to comment.