diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2020-07-07 20:51:40 +0800 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2020-08-02 23:56:13 +0200 |
commit | 094b6d1295474f338201b846a1f15e72eb0b12cf (patch) | |
tree | d3f357e026bb22deefc30d4f8416caa464580ec5 /fs/jffs2 | |
parent | c3fc1a3919e35a9d8157ed3ae6fd0a478293ba2c (diff) |
ubifs: Fix wrong orphan node deletion in ubifs_jnl_update|rename
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: 823838a486888cf484e ("ubifs: Add hashes to the tree node cache")
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/jffs2')
0 files changed, 0 insertions, 0 deletions