diff options
| author | 2009-01-19 23:40:36 +0000 | |
|---|---|---|
| committer | 2009-01-19 23:40:36 +0000 | |
| commit | fdc7e2e58d1bb00cdcc1be13de80732ae071c84a (patch) | |
| tree | d03567a47e547f1d571441d09c37e6dee4003ce0 /sys/nfs/nfsnode.h | |
| parent | updates for BKK and DMK; based on a diff from Robert Elz, submitted (diff) | |
| download | wireguard-openbsd-fdc7e2e58d1bb00cdcc1be13de80732ae071c84a.tar.xz wireguard-openbsd-fdc7e2e58d1bb00cdcc1be13de80732ae071c84a.zip | |
Introduce a macro to invalidate the attribute
cache instead of setting n_attrstamp to 0 directly.
Lift the macro name from NetBSD.
prompted by and OK blambert@
Diffstat (limited to 'sys/nfs/nfsnode.h')
| -rw-r--r-- | sys/nfs/nfsnode.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/nfs/nfsnode.h b/sys/nfs/nfsnode.h index 61c58b9cea9..53a3ce4ce98 100644 --- a/sys/nfs/nfsnode.h +++ b/sys/nfs/nfsnode.h @@ -1,4 +1,4 @@ -/* $OpenBSD: nfsnode.h,v 1.31 2008/06/14 19:33:58 beck Exp $ */ +/* $OpenBSD: nfsnode.h,v 1.32 2009/01/19 23:40:36 thib Exp $ */ /* $NetBSD: nfsnode.h,v 1.16 1996/02/18 11:54:04 fvdl Exp $ */ /* @@ -129,6 +129,8 @@ struct nfsnode { #define NUPD 0x0200 /* Special file updated */ #define NCHG 0x0400 /* Special file times changed */ +#define NFS_INVALIDATE_ATTRCACHE(np) ((np)->n_attrstamp = 0) + /* * Convert between nfsnode pointers and vnode pointers */ |
