dect
/
linux-2.6
Archived
13
0
Fork 0

Btrfs: use <= instead of < in is_extent_unchanged

Used the wrong compare operator here.

Reported-by: Alex Lyakas <alex.bolshoy.btrfs@gmail.com>
Signed-off-by: Alexander Block <ablock84@googlemail.com>
This commit is contained in:
Alexander Block 2012-08-01 12:49:15 +02:00 committed by Chris Mason
parent 3954096d4b
commit d8347fa444
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}