svn commit: r248422 - in head/sys: fs/tmpfs ufs/ufs
Konstantin Belousov
kib at FreeBSD.org
Sun Mar 17 15:11:37 UTC 2013
Author: kib
Date: Sun Mar 17 15:11:37 2013
New Revision: 248422
URL: http://svnweb.freebsd.org/changeset/base/248422
Log:
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
Modified:
head/sys/fs/tmpfs/tmpfs_vnops.c
head/sys/ufs/ufs/ufs_vnops.c
Modified: head/sys/fs/tmpfs/tmpfs_vnops.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_vnops.c Sun Mar 17 10:57:04 2013 (r248421)
+++ head/sys/fs/tmpfs/tmpfs_vnops.c Sun Mar 17 15:11:37 2013 (r248422)
@@ -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;
Modified: head/sys/ufs/ufs/ufs_vnops.c
==============================================================================
--- head/sys/ufs/ufs/ufs_vnops.c Sun Mar 17 10:57:04 2013 (r248421)
+++ head/sys/ufs/ufs/ufs_vnops.c Sun Mar 17 15:11:37 2013 (r248422)
@@ -1554,6 +1554,7 @@ relock:
cache_purge(fvp);
if (tvp)
cache_purge(tvp);
+ cache_purge_negative(tdvp);
unlockout:
vput(fdvp);
More information about the svn-src-head
mailing list