Btrfs: use <= instead of < in is_extent_unchanged
authorAlexander Block <ablock84@googlemail.com>
Wed, 1 Aug 2012 10:49:15 +0000 (12:49 +0200)
committerChris Mason <chris.mason@fusionio.com>
Mon, 1 Oct 2012 19:18:58 +0000 (15:18 -0400)
Used the wrong compare operator here.

Reported-by: Alex Lyakas <alex.bolshoy.btrfs@gmail.com>
Signed-off-by: Alexander Block <ablock84@googlemail.com>
fs/btrfs/send.c

index 35222d5420f61ff64f1e13ac0a92a2c4b8894c76..c6c10a43153cfb0fb5a650346787dc3aff95d64c 100644 (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;
                }