Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include use a TAILQ instead of a CIRCLEQ, from FreeBSD
details: https://anonhg.NetBSD.org/src/rev/776664fb63ab
branches: trunk
changeset: 791532:776664fb63ab
user: christos <christos%NetBSD.org@localhost>
date: Fri Nov 22 16:25:01 2013 +0000
description:
use a TAILQ instead of a CIRCLEQ, from FreeBSD
diffstat:
include/mpool.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r a66fb5dad754 -r 776664fb63ab include/mpool.h
--- a/include/mpool.h Fri Nov 22 16:11:08 2013 +0000
+++ b/include/mpool.h Fri Nov 22 16:25:01 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mpool.h,v 1.13 2008/08/26 21:18:38 joerg Exp $ */
+/* $NetBSD: mpool.h,v 1.14 2013/11/22 16:25:01 christos Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -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 */
@@ -60,9 +60,9 @@
} 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 */
Home |
Main Index |
Thread Index |
Old Index