diff options
author | Alexander Block <ablock84@googlemail.com> | 2012-07-28 14:51:32 +0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-10-01 23:18:50 +0400 |
commit | adbe7fb6c4750621a56867d9bb1980da3a4b8f33 (patch) | |
tree | 9acf6c9421aa9593c0647cd5b0d45b033d1cac25 /fs/btrfs/send.c | |
parent | 52f9e53ede8e1b261e68216c6c2f32bb3f26c795 (diff) | |
download | linux-adbe7fb6c4750621a56867d9bb1980da3a4b8f33.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r-- | fs/btrfs/send.c | 1 |
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; } } |