Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Mar 2013 07:41:36 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r248678 - in stable/9/sys: fs/tmpfs ufs/ufs
Message-ID:  <201303240741.r2O7fanl079080@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303240741.r2O7fanl079080>