Re: [PATCH] ubifs: journal: Make sure to not dirty twice for auth nodes

2020-09-29 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "Sascha Hauer" > An: "richard" > CC: "linux-mtd" , "linux-kernel" > , "stable" > , "Kristof Havasi" > Gesendet: Dienstag, 29. September 2020 10:32:32 > Betreff: Re: [PATCH]

Re: [PATCH] ubifs: journal: Make sure to not dirty twice for auth nodes

2020-09-29 Thread Sascha Hauer
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: > Cc: Sascha Hauer > Cc: Kristof Havasi > Fi

[PATCH] ubifs: journal: Make sure to not dirty twice for auth nodes

2020-09-28 Thread Richard Weinberger
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: Cc: Sascha Hauer Cc: Kristof Havasi Fixes: 6a98bc4614de ("ubifs: Add authentication nodes to journal") Reported-by: Kristo