mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 15:53:22 -05:00
ubifs: Add missing iput if do_tmpfile() failed in rename whiteout
commit 716b4573026bcbfa7b58ed19fe15554bac66b082 upstream.
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: 9e0a1fff8d ("ubifs: Implement RENAME_WHITEOUT")
Signed-off-by: Zhihao Cheng <[email protected]>
Suggested-by: Sascha Hauer <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
37bdf1ad59
commit
786013ecba
1 changed files with 2 additions and 0 deletions
|
|
@ -439,6 +439,8 @@ out_inode:
|
|||
make_bad_inode(inode);
|
||||
if (!instantiated)
|
||||
iput(inode);
|
||||
else if (whiteout)
|
||||
iput(*whiteout);
|
||||
out_budg:
|
||||
ubifs_release_budget(c, &req);
|
||||
if (!instantiated)
|
||||
|
|
|
|||
Loading…
Reference in a new issue