aboutsummaryrefslogtreecommitdiffstats
path: root/include/mpool.h
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2000-05-26 02:09:24 +0000
committerJake Burkholder <jake@FreeBSD.org>2000-05-26 02:09:24 +0000
commite39756439c7255bc16ba14b7b991cb01ba1c93bd (patch)
tree112dfed9c5841280f457e0dca97e8de49e04ecd9 /include/mpool.h
parent13c6acf19de074f64f9ff031a2e5e660c7957fd2 (diff)
downloadsrc-e39756439c7255bc16ba14b7b991cb01ba1c93bd.tar.gz
src-e39756439c7255bc16ba14b7b991cb01ba1c93bd.zip
Back out the previous change to the queue(3) interface.
It was not discussed and should probably not happen. Requested by: msmith and others
Notes
Notes: svn path=/head/; revision=60938
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 8838fbddd157..0f08e8dab7b7 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(struct _bkt) hq; /* hash queue */
- CIRCLEQ_ENTRY(struct _bkt) q; /* lru queue */
+ CIRCLEQ_ENTRY(_bkt) hq; /* hash queue */
+ CIRCLEQ_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, struct _bkt) lqh; /* lru queue head */
+ CIRCLEQ_HEAD(_lqh, _bkt) lqh; /* lru queue head */
/* hash queue array */
- CIRCLEQ_HEAD(_hqh, struct _bkt) hqh[HASHSIZE];
+ CIRCLEQ_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 */