mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
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>
This commit is contained in:
parent
52f9e53ede
commit
adbe7fb6c4
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user