diff options
author | Alexander Block <ablock84@googlemail.com> | 2012-08-01 06:49:15 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-10-01 15:18:58 -0400 |
commit | d8347fa444c682dc8a1e24e7158bfa2dd4c9ca71 (patch) | |
tree | d7d31fdcfc5fca5977b81b711ffd7ea956a8ecb1 /fs/btrfs/send.c | |
parent | 3954096d4b1adab6fbb3c26de37ddd4f781e072f (diff) |
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>
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r-- | fs/btrfs/send.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 35222d5420f6..c6c10a43153c 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c | |||
@@ -3802,7 +3802,7 @@ static int is_extent_unchanged(struct send_ctx *sctx, | |||
3802 | * Are we at extent 8? If yes, we know the extent is changed. | 3802 | * Are we at extent 8? If yes, we know the extent is changed. |
3803 | * This may only happen on the first iteration. | 3803 | * This may only happen on the first iteration. |
3804 | */ | 3804 | */ |
3805 | if (found_key.offset + right_len < ekey->offset) { | 3805 | if (found_key.offset + right_len <= ekey->offset) { |
3806 | ret = 0; | 3806 | ret = 0; |
3807 | goto out; | 3807 | goto out; |
3808 | } | 3808 | } |