diff options
author | phk <phk@FreeBSD.org> | 2000-12-29 20:25:01 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-12-29 20:25:01 +0000 |
commit | 6180841d0aed4d2dd35553757bbc6fac788aeff0 (patch) | |
tree | 1149a18f8097a30d662ee62315d3d3d1cb5bc869 /include | |
parent | 8ba5f80fd8a3eb8d03ab5daf6949e48979a5bf48 (diff) | |
download | FreeBSD-src-6180841d0aed4d2dd35553757bbc6fac788aeff0.zip FreeBSD-src-6180841d0aed4d2dd35553757bbc6fac788aeff0.tar.gz |
Use TAILQ instead of CIRCLEQ.
Diffstat (limited to 'include')
-rw-r--r-- | include/mpool.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mpool.h b/include/mpool.h index 0f08e8d..1adf60d 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 */ |