ubifs: Fix wrong orphan node deletion in ubifs_jnl_update|rename
commit 094b6d12 upstream. There a wrong orphan node deleting in error handling path in ubifs_jnl_update() and ubifs_jnl_rename(), which may cause following error msg: UBIFS error (ubi0:0 pid 1522): ubifs_delete_orphan [ubifs]: missing orphan ino 65 Fix this by checking whether the node has been operated for adding to orphan list before being deleted, Signed-off-by:Zhihao Cheng <chengzhihao1@huawei.com> Fixes: 823838a4 ("ubifs: Add hashes to the tree node cache") Signed-off-by:
Richard Weinberger <richard@nod.at> Signed-off-by:
Paul Gortmaker <paul.gortmaker@windriver.com>
Loading
Please register or sign in to comment