nfs_clnode.c (220732) | nfs_clnode.c (223280) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * from nfs_node.c 8.6 (Berkeley) 5/22/95 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * from nfs_node.c 8.6 (Berkeley) 5/22/95 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/fs/nfsclient/nfs_clnode.c 220732 2011-04-16 23:20:21Z rmacklem $"); | 36__FBSDID("$FreeBSD: head/sys/fs/nfsclient/nfs_clnode.c 223280 2011-06-18 23:02:53Z rmacklem $"); |
37 | 37 |
38#include "opt_kdtrace.h" 39 |
|
38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/fcntl.h> 41#include <sys/lock.h> 42#include <sys/malloc.h> 43#include <sys/mount.h> 44#include <sys/namei.h> 45#include <sys/proc.h> 46#include <sys/socket.h> 47#include <sys/sysctl.h> 48#include <sys/vnode.h> 49 50#include <vm/uma.h> 51 52#include <fs/nfs/nfsport.h> 53#include <fs/nfsclient/nfsnode.h> 54#include <fs/nfsclient/nfsmount.h> 55#include <fs/nfsclient/nfs.h> | 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/fcntl.h> 43#include <sys/lock.h> 44#include <sys/malloc.h> 45#include <sys/mount.h> 46#include <sys/namei.h> 47#include <sys/proc.h> 48#include <sys/socket.h> 49#include <sys/sysctl.h> 50#include <sys/vnode.h> 51 52#include <vm/uma.h> 53 54#include <fs/nfs/nfsport.h> 55#include <fs/nfsclient/nfsnode.h> 56#include <fs/nfsclient/nfsmount.h> 57#include <fs/nfsclient/nfs.h> |
58#include <fs/nfsclient/nfs_kdtrace.h> |
|
56 57#include <nfs/nfs_lock.h> 58 59extern struct vop_vector newnfs_vnodeops; 60extern struct buf_ops buf_ops_newnfs; 61MALLOC_DECLARE(M_NEWNFSREQ); 62 63uma_zone_t newnfsnode_zone; --- 231 unchanged lines hidden (view full) --- 295ncl_invalcaches(struct vnode *vp) 296{ 297 struct nfsnode *np = VTONFS(vp); 298 int i; 299 300 mtx_lock(&np->n_mtx); 301 for (i = 0; i < NFS_ACCESSCACHESIZE; i++) 302 np->n_accesscache[i].stamp = 0; | 59 60#include <nfs/nfs_lock.h> 61 62extern struct vop_vector newnfs_vnodeops; 63extern struct buf_ops buf_ops_newnfs; 64MALLOC_DECLARE(M_NEWNFSREQ); 65 66uma_zone_t newnfsnode_zone; --- 231 unchanged lines hidden (view full) --- 298ncl_invalcaches(struct vnode *vp) 299{ 300 struct nfsnode *np = VTONFS(vp); 301 int i; 302 303 mtx_lock(&np->n_mtx); 304 for (i = 0; i < NFS_ACCESSCACHESIZE; i++) 305 np->n_accesscache[i].stamp = 0; |
306 KDTRACE_NFS_ACCESSCACHE_FLUSH_DONE(vp); |
|
303 np->n_attrstamp = 0; | 307 np->n_attrstamp = 0; |
308 KDTRACE_NFS_ATTRCACHE_FLUSH_DONE(vp); |
|
304 mtx_unlock(&np->n_mtx); 305} 306 | 309 mtx_unlock(&np->n_mtx); 310} 311 |