From: Alexander Block Date: Wed, 1 Aug 2012 10:49:15 +0000 (+0200) Subject: Btrfs: use <= instead of < in is_extent_unchanged X-Git-Tag: v3.12-rc1~2047^2~113 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8347fa444c682dc8a1e24e7158bfa2dd4c9ca71;p=kernel%2Fkernel-generic.git Btrfs: use <= instead of < in is_extent_unchanged Used the wrong compare operator here. Reported-by: Alex Lyakas Signed-off-by: Alexander Block --- diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 35222d5..c6c10a4 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -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; }