svn commit: r248832 - in stable/8/sys: fs/tmpfs ufs/ufs

Konstantin Belousov kib at FreeBSD.org
Thu Mar 28 14:39:51 UTC 2013


Author: kib
Date: Thu Mar 28 14:39:50 2013
New Revision: 248832
URL: http://svnweb.freebsd.org/changeset/base/248832

Log:
  MFC r248422:
  Remove negative name cache entry pointing to the target name, which
  could be instantiated while tdvp was unlocked.

Modified:
  stable/8/sys/fs/tmpfs/tmpfs_vnops.c
  stable/8/sys/ufs/ufs/ufs_vnops.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/fs/   (props changed)
  stable/8/sys/ufs/   (props changed)

Modified: stable/8/sys/fs/tmpfs/tmpfs_vnops.c
==============================================================================
--- stable/8/sys/fs/tmpfs/tmpfs_vnops.c	Thu Mar 28 14:25:09 2013	(r248831)
+++ stable/8/sys/fs/tmpfs/tmpfs_vnops.c	Thu Mar 28 14:39:50 2013	(r248832)
@@ -1282,6 +1282,7 @@ tmpfs_rename(struct vop_rename_args *v)
 	cache_purge(fvp);
 	if (tvp != NULL)
 		cache_purge(tvp);
+	cache_purge_negative(tdvp);
 
 	error = 0;
 

Modified: stable/8/sys/ufs/ufs/ufs_vnops.c
==============================================================================
--- stable/8/sys/ufs/ufs/ufs_vnops.c	Thu Mar 28 14:25:09 2013	(r248831)
+++ stable/8/sys/ufs/ufs/ufs_vnops.c	Thu Mar 28 14:39:50 2013	(r248832)
@@ -1538,6 +1538,7 @@ relock:
 	cache_purge(fvp);
 	if (tvp)
 		cache_purge(tvp);
+	cache_purge_negative(tdvp);
 
 unlockout:
 	vput(fdvp);


More information about the svn-src-all mailing list