Date: Thu, 28 Mar 2013 14:39:51 +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-8@freebsd.org Subject: svn commit: r248832 - in stable/8/sys: fs/tmpfs ufs/ufs Message-ID: <201303281439.r2SEdpbI074462@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303281439.r2SEdpbI074462>