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

Btrfs: use <= instead of < in is_extent_unchanged

Used the wrong compare operator here.
Reported-by: NAlex Lyakas <alex.bolshoy.btrfs@gmail.com>
Signed-off-by: NAlexander Block <ablock84@googlemail.com>
上级 3954096d
......@@ -3802,7 +3802,7 @@ static int is_extent_unchanged(struct send_ctx *sctx,
* Are we at extent 8? If yes, we know the extent is changed.
* This may only happen on the first iteration.
*/
if (found_key.offset + right_len < ekey->offset) {
if (found_key.offset + right_len <= ekey->offset) {
ret = 0;
goto out;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册