提交 3954096d 编写于 作者: A Alexander Block 提交者: Chris Mason

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: NAlexander Block <ablock84@googlemail.com>
上级 5dc67d0b
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册