svn commit: r189083 - in stable/6/sys: . contrib/pf dev/cxgb nfsclient

John Baldwin jhb at FreeBSD.org
Thu Feb 26 11:08:26 PST 2009


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;


More information about the svn-src-stable mailing list