Zhihao Cheng 716b457302 ubifs: Add missing iput if do_tmpfile() failed in rename whiteout
whiteout inode should be put when do_tmpfile() failed if inode has been
initialized. Otherwise we will get following warning during umount:
  UBIFS error (ubi0:0 pid 1494): ubifs_assert_failed [ubifs]: UBIFS
  assert failed: c->bi.dd_growth == 0, in fs/ubifs/super.c:1930
  VFS: Busy inodes after unmount of ubifs. Self-destruct in 5 seconds.

Fixes: 9e0a1fff8db56ea ("ubifs: Implement RENAME_WHITEOUT")
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Suggested-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
2022-01-09 21:47:05 +01:00
..
2021-06-18 22:04:47 +02:00
2021-12-23 20:23:42 +01:00
2021-04-12 15:04:30 +02:00
2021-06-22 09:21:39 +02:00
2021-06-22 09:21:39 +02:00
2020-08-02 22:59:03 +02:00
2021-12-23 20:23:40 +01:00
2021-04-15 22:00:26 +02:00
2021-12-23 22:08:19 +01:00
2021-06-22 09:21:39 +02:00