[PATCH] ubifs: journal: Make sure to not dirty twice for auth nodes
Richard Weinberger
richard at nod.at
Tue Sep 29 04:44:33 EDT 2020
----- Ursprüngliche Mail -----
> Von: "Sascha Hauer" <s.hauer at pengutronix.de>
> An: "richard" <richard at nod.at>
> CC: "linux-mtd" <linux-mtd at lists.infradead.org>, "linux-kernel" <linux-kernel at vger.kernel.org>, "stable"
> <stable at vger.kernel.org>, "Kristof Havasi" <havasiefr at gmail.com>
> Gesendet: Dienstag, 29. September 2020 10:32:32
> Betreff: Re: [PATCH] ubifs: journal: Make sure to not dirty twice for auth nodes
> On Mon, Sep 28, 2020 at 09:06:12PM +0200, Richard Weinberger wrote:
>> When removing the last reference of an inode the size of an auth node
>> is already part of write_len. So we must not call ubifs_add_auth_dirt().
>> Call it only when needed.
>>
>> Cc: <stable at vger.kernel.org>
>> Cc: Sascha Hauer <s.hauer at pengutronix.de>
>> Cc: Kristof Havasi <havasiefr at gmail.com>
>> Fixes: 6a98bc4614de ("ubifs: Add authentication nodes to journal")
>> Reported-by: Kristof Havasi <havasiefr at gmail.com>
>> Signed-off-by: Richard Weinberger <richard at nod.at>
>
> Looked at the code until I understood what the problem is and how it is
> fixed, so:
>
> Reviewed-by: Sascha Hauer <s.hauer at pengutronix.de>
Applied to fixes branch!
Thanks,
//richard
More information about the linux-mtd
mailing list