svn commit: r248678 - in stable/9/sys: fs/tmpfs ufs/ufs

Konstantin Belousov kib at FreeBSD.org
Sun Mar 24 07:41:37 UTC 2013


Author: kib
Date: Sun Mar 24 07:41:36 2013
New Revision: 248678
URL: http://svnweb.freebsd.org/changeset/base/248678

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

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

Modified: stable/9/sys/fs/tmpfs/tmpfs_vnops.c
==============================================================================
--- stable/9/sys/fs/tmpfs/tmpfs_vnops.c	Sun Mar 24 04:42:56 2013	(r248677)
+++ stable/9/sys/fs/tmpfs/tmpfs_vnops.c	Sun Mar 24 07:41:36 2013	(r248678)
@@ -1306,6 +1306,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/9/sys/ufs/ufs/ufs_vnops.c
==============================================================================
--- stable/9/sys/ufs/ufs/ufs_vnops.c	Sun Mar 24 04:42:56 2013	(r248677)
+++ stable/9/sys/ufs/ufs/ufs_vnops.c	Sun Mar 24 07:41:36 2013	(r248678)
@@ -1562,6 +1562,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