linux/fs/ubifs
Zhihao Cheng 1896dfc97c ubifs: Fix wrong orphan node deletion in ubifs_jnl_update|rename
[ Upstream commit 094b6d1295 ]

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: 823838a486 ("ubifs: Add hashes to the tree node cache")
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-21 13:05:35 +02:00
..
Kconfig
Makefile
auth.c ubifs: fix wrong use of crypto_shash_descsize() 2020-05-27 17:46:09 +02:00
budget.c
commit.c
compress.c
crypto.c
debug.c
debug.h
dir.c
file.c ubifs: remove broken lazytime support 2020-05-27 17:46:14 +02:00
find.c
gc.c
io.c
ioctl.c
journal.c ubifs: Fix wrong orphan node deletion in ubifs_jnl_update|rename 2020-08-21 13:05:35 +02:00
key.h
log.c
lprops.c
lpt.c
lpt_commit.c
master.c
misc.c
misc.h
orphan.c
recovery.c
replay.c ubifs: fix wrong use of crypto_shash_descsize() 2020-05-27 17:46:09 +02:00
sb.c
scan.c
shrinker.c
super.c
tnc.c
tnc_commit.c
tnc_misc.c
ubifs-media.h
ubifs.h
xattr.c