Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2009 19:08:25 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org
Subject:   svn commit: r189083 - in stable/6/sys: . contrib/pf dev/cxgb nfsclient
Message-ID:  <200902261908.n1QJ8PBs035829@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Thu Feb 26 19:08:24 2009
New Revision: 189083
URL: http://svn.freebsd.org/changeset/base/189083

Log:
  MFC: Don't clear the attribute cache of a file when it is closed.

Modified:
  stable/6/sys/   (props changed)
  stable/6/sys/contrib/pf/   (props changed)
  stable/6/sys/dev/cxgb/   (props changed)
  stable/6/sys/nfsclient/nfs_vnops.c

Modified: stable/6/sys/nfsclient/nfs_vnops.c
==============================================================================
--- stable/6/sys/nfsclient/nfs_vnops.c	Thu Feb 26 18:58:41 2009	(r189082)
+++ stable/6/sys/nfsclient/nfs_vnops.c	Thu Feb 26 19:08:24 2009	(r189083)
@@ -542,13 +542,6 @@ nfs_close(struct vop_close_args *ap)
 		} else
 		    error = nfs_vinvalbuf(vp, V_SAVE, ap->a_td, 1);
 	    }
- 	    /* 
- 	     * Invalidate the attribute cache in all cases.
- 	     * An open is going to fetch fresh attrs any way, other procs
- 	     * on this node that have file open will be forced to do an 
- 	     * otw attr fetch, but this is safe.
- 	     */
-	    np->n_attrstamp = 0;
 	    if (np->n_flag & NWRITEERR) {
 		np->n_flag &= ~NWRITEERR;
 		error = np->n_error;



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