Skip to content
Commit 78c7d49f authored by Richard Weinberger's avatar Richard Weinberger
Browse files

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



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@vger.kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Kristof Havasi <havasiefr@gmail.com>
Fixes: 6a98bc46 ("ubifs: Add authentication nodes to journal")
Reported-and-tested-by: default avatarKristof Havasi <havasiefr@gmail.com>
Reviewed-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 121b8fcb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment