forked from luck/tmp_suning_uos_patched
Btrfs: fix check for changed extent in is_extent_unchanged
The previous check was working fine, but this check should be easier to read. Also, we could theoritically have some exotic bugs with the previous checks. Signed-off-by: Alexander Block <ablock84@googlemail.com>
This commit is contained in:
parent
5dc67d0ba9
commit
3954096d4b
|
@ -3819,8 +3819,8 @@ static int is_extent_unchanged(struct send_ctx *sctx,
|
|||
/*
|
||||
* Check if we have the same extent.
|
||||
*/
|
||||
if (left_disknr + left_offset_fixed !=
|
||||
right_disknr + right_offset) {
|
||||
if (left_disknr != right_disknr ||
|
||||
left_offset_fixed != right_offset) {
|
||||
ret = 0;
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user