Commit 52f9e53e authored by Alexander Block's avatar Alexander Block Committed by Chris Mason

Btrfs: use normal return path for root == send_root case

Don't have a seperate return path for the mentioned case. Now
we do the same "take lowest inode/offset" logic for all found clones.

Commit is a result of Arne's review.
Signed-off-by: default avatarAlexander Block <ablock84@googlemail.com>
parent 35075bb0
......@@ -1109,12 +1109,6 @@ static int __iterate_backrefs(u64 ino, u64 offset, u64 root, void *ctx_)
return 0;
if (offset + ctx->extent_len > ctx->cur_offset)
return 0;*/
bctx->found++;
found->found_refs++;
found->ino = ino;
found->offset = offset;
return 0;
}
bctx->found++;
......
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