Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3954096d authored by Alexander Block's avatar Alexander Block Committed by Chris Mason
Browse files

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: default avatarAlexander Block <ablock84@googlemail.com>
parent 5dc67d0b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
		}