Re: [PATCH] zram: correct offset usage in zram_bio_discard

From: Weijie Yang
Date: Tue Apr 22 2014 - 22:32:36 EST


On Wed, Apr 23, 2014 at 3:55 AM, Andrew Morton
<akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Tue, 22 Apr 2014 11:14:02 +0800 Weijie Yang <weijie.yang@xxxxxxxxxxx> wrote:
>
>> we want to skip the logical block which is partially covered by
>> the discard bio, so check the remaining size and subtract it if
>> there is a need to goto the next logical block.
>>
>> This patch corrects the offset usage in zram_bio_discard.
>>
>
> What were the end-user visible effects of the bug?
>
> Please always include this information when fixing something so that
> others can work out which kernel(s) need patching.
>

Thanks for your advise, I will resend this patch and add the end-user
visible effect information.

> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/