Skip to content

Commit

Permalink
Btrfs: use <= instead of < in is_extent_unchanged
Browse files Browse the repository at this point in the history
Used the wrong compare operator here.

Reported-by: Alex Lyakas <alex.bolshoy.btrfs@gmail.com>
Signed-off-by: Alexander Block <ablock84@googlemail.com>
  • Loading branch information
Alexander Block authored and Chris Mason committed Oct 1, 2012
1 parent 3954096 commit d8347fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/btrfs/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d8347fa

Please sign in to comment.