Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovl: fix BUG_ON() in may_delete() when called from ovl_cleanup()
If function ovl_instantiate() returns an error, ovl_cleanup will be called and try to remove newdentry from wdir, but the newdentry has been moved to udir at this time. This will causes BUG_ON(victim->d_parent->d_inode != dir) in fs/namei.c:may_delete. Signed-off-by: chenying <[email protected]> Fixes: 01b39dc ("ovl: use inode_insert5() to hash a newly created inode") Link: https://lore.kernel.org/linux-unionfs/[email protected]/ Cc: <[email protected]> # v4.18 Signed-off-by: Miklos Szeredi <[email protected]>
- Loading branch information