summaryrefslogtreecommitdiff
path: root/include/mpool.h
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-12-02 02:28:22 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-12-02 02:28:22 +0000
commitf96af347e71a0cbd53221ab1477cf183c0b4b254 (patch)
tree70e9885a4ed2ccde1ff07e2060ffb06e39cbdb31 /include/mpool.h
parent50db31580519f08061cbcb183acf50dc9d571f55 (diff)
CIRCLEQ begone.
ok miller@
Diffstat (limited to 'include/mpool.h')
-rw-r--r--include/mpool.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/mpool.h b/include/mpool.h
index fb33d4493de..50916adbdb1 100644
--- a/include/mpool.h
+++ b/include/mpool.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpool.h,v 1.10 2004/01/22 21:48:02 espie Exp $ */
+/* $OpenBSD: mpool.h,v 1.11 2013/12/02 02:28:21 krw Exp $ */
/* $NetBSD: mpool.h,v 1.7 1996/05/03 21:13:41 cgd Exp $ */
/*-
@@ -49,8 +49,8 @@
/* The BKT structures are the elements of the queues. */
typedef struct _bkt {
- CIRCLEQ_ENTRY(_bkt) hq; /* hash queue */
- CIRCLEQ_ENTRY(_bkt) q; /* lru queue */
+ TAILQ_ENTRY(_bkt) hq; /* hash queue */
+ TAILQ_ENTRY(_bkt) q; /* lru queue */
void *page; /* page */
pgno_t pgno; /* page number */
@@ -61,9 +61,9 @@ typedef struct _bkt {
} BKT;
typedef struct MPOOL {
- CIRCLEQ_HEAD(_lqh, _bkt) lqh; /* lru queue head */
+ TAILQ_HEAD(_lqh, _bkt) lqh; /* lru queue head */
/* hash queue array */
- CIRCLEQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
+ TAILQ_HEAD(_hqh, _bkt) hqh[HASHSIZE];
pgno_t curcache; /* current number of cached pages */
pgno_t maxcache; /* max number of cached pages */
pgno_t npages; /* number of pages in the file */