Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: <[email protected]> Cc: Sascha Hauer <[email protected]> Cc: Kristof Havasi <[email protected]> Fixes: 6a98bc4 ("ubifs: Add authentication nodes to journal") Reported-and-tested-by: Kristof Havasi <[email protected]> Reviewed-by: Sascha Hauer <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
- Loading branch information