summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Block <ablock84@googlemail.com>2012-07-28 12:51:32 +0200
committerChris Mason <chris.mason@fusionio.com>2012-10-01 15:18:50 -0400
commitadbe7fb6c4750621a56867d9bb1980da3a4b8f33 (patch)
tree9acf6c9421aa9593c0647cd5b0d45b033d1cac25
parent52f9e53ede8e1b261e68216c6c2f32bb3f26c795 (diff)
downloadblackbird-op-linux-adbe7fb6c4750621a56867d9bb1980da3a4b8f33.tar.gz
blackbird-op-linux-adbe7fb6c4750621a56867d9bb1980da3a4b8f33.zip
Btrfs: don't break in the final loop of find_extent_clone
If we break, we may miss the clone from send_root which we prefer over all other clones. Commit is a result of Arne's review. Reported-by: Arne Jansen <sensille@gmx.net> Signed-off-by: Alexander Block <ablock84@googlemail.com>
-rw-r--r--fs/btrfs/send.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index d2a4ee9125df..68b2543e5d6c 100644
--- a/fs/btrfs/send.c
+++ b/fs/btrfs/send.c
@@ -1257,7 +1257,6 @@ verbose_printk(KERN_DEBUG "btrfs: find_extent_clone: data_offset=%llu, "
else if (sctx->clone_roots[i].root == sctx->send_root)
/* prefer clones from send_root over others */
cur_clone_root = sctx->clone_roots + i;
- break;
}
}
OpenPOWER on IntegriCloud