Remove negative name cache entry pointing to the target name, which

could be instantiated while tdvp was unlocked.

Reported by:	Rick Miller <vmiller at hostileadmin com>
Tested by:	pho
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2013-03-17 15:11:37 +00:00
parent 4f67e14304
commit 0d3bb4afa8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=248422
2 changed files with 2 additions and 0 deletions

View File

@ -1297,6 +1297,7 @@ tmpfs_rename(struct vop_rename_args *v)
cache_purge(fvp);
if (tvp != NULL)
cache_purge(tvp);
cache_purge_negative(tdvp);
error = 0;

View File

@ -1554,6 +1554,7 @@ ufs_rename(ap)
cache_purge(fvp);
if (tvp)
cache_purge(tvp);
cache_purge_negative(tdvp);
unlockout:
vput(fdvp);