diff options
author | Alexander Block <ablock84@googlemail.com> | 2012-07-28 10:32:45 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-10-01 15:18:50 -0400 |
commit | 52f9e53ede8e1b261e68216c6c2f32bb3f26c795 (patch) | |
tree | 597f4516d94d09638c625b6e0c03ca42cbdf3a8e | |
parent | 35075bb046cc91f42a0e5336bdc07f3279061add (diff) |
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: Alexander Block <ablock84@googlemail.com>
-rw-r--r-- | fs/btrfs/send.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 36711123bdcf..d2a4ee9125df 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c | |||
@@ -1109,12 +1109,6 @@ static int __iterate_backrefs(u64 ino, u64 offset, u64 root, void *ctx_) | |||
1109 | return 0; | 1109 | return 0; |
1110 | if (offset + ctx->extent_len > ctx->cur_offset) | 1110 | if (offset + ctx->extent_len > ctx->cur_offset) |
1111 | return 0;*/ | 1111 | return 0;*/ |
1112 | |||
1113 | bctx->found++; | ||
1114 | found->found_refs++; | ||
1115 | found->ino = ino; | ||
1116 | found->offset = offset; | ||
1117 | return 0; | ||
1118 | } | 1112 | } |
1119 | 1113 | ||
1120 | bctx->found++; | 1114 | bctx->found++; |