summaryrefslogtreecommitdiffstats
path: root/sys/nfsserver/nfsrvcache.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-10-17 17:47:45 +0000
committerphk <phk@FreeBSD.org>1994-10-17 17:47:45 +0000
commit071d10f334b2e0094018c4b2027c8e3e73833bc1 (patch)
treec5905f4096b68df87a3f00435bec4fcc08408b18 /sys/nfsserver/nfsrvcache.h
parent24ec594f4ae8189490a0087923fc655e16dde331 (diff)
downloadFreeBSD-src-071d10f334b2e0094018c4b2027c8e3e73833bc1.zip
FreeBSD-src-071d10f334b2e0094018c4b2027c8e3e73833bc1.tar.gz
This is a bunch of changes from NetBSD. There are a couple of bug-fixes.
But mostly it is changes to use the list-maintenance macros instead of doing the pointer-gymnastics by hand. Obtained from: NetBSD
Diffstat (limited to 'sys/nfsserver/nfsrvcache.h')
-rw-r--r--sys/nfsserver/nfsrvcache.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/nfsserver/nfsrvcache.h b/sys/nfsserver/nfsrvcache.h
index 00eac6a..b367b9f 100644
--- a/sys/nfsserver/nfsrvcache.h
+++ b/sys/nfsserver/nfsrvcache.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfsrvcache.h 8.1 (Berkeley) 6/10/93
- * $Id: nfsrvcache.h,v 1.2 1994/08/02 07:52:25 davidg Exp $
+ * $Id: nfsrvcache.h,v 1.3 1994/08/21 06:50:13 paul Exp $
*/
#ifndef _NFS_NFSRVCACHE_H_
@@ -47,10 +47,8 @@
#define NFSRVCACHESIZ 256
struct nfsrvcache {
- struct nfsrvcache *rc_forw; /* Hash chain links */
- struct nfsrvcache **rc_back; /* Hash chain links */
- struct nfsrvcache *rc_next; /* Lru list */
- struct nfsrvcache **rc_prev; /* Lru list */
+ TAILQ_ENTRY(nfsrvcache) rc_lru; /* LRU chain */
+ LIST_ENTRY(nfsrvcache) rc_hash; /* Hash chain */
u_long rc_xid; /* rpc id number */
union {
struct mbuf *ru_repmb; /* Reply mbuf list OR */
OpenPOWER on IntegriCloud