aboutsummaryrefslogtreecommitdiff
path: root/include/mpool.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2000-12-29 20:25:01 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2000-12-29 20:25:01 +0000
commitfabacd3a11d4267e45a0327c5382f1534587b619 (patch)
tree33c7f331db5bc6981ed6e91c9d4ec6d4c518aa22 /include/mpool.h
parent1d2187bfdb53e0ae9d789cf5089d8a134831ac9d (diff)
downloadsrc-fabacd3a11d4267e45a0327c5382f1534587b619.tar.gz
src-fabacd3a11d4267e45a0327c5382f1534587b619.zip
Use TAILQ instead of CIRCLEQ.
Notes
Notes: svn path=/head/; revision=70492
Diffstat (limited to 'include/mpool.h')
-rw-r--r--include/mpool.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mpool.h b/include/mpool.h
index 0f08e8dab7b7..1adf60d5383b 100644
--- a/include/mpool.h
+++ b/include/mpool.h
@@ -51,8 +51,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 */
@@ -62,9 +62,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 */