diff options
author | alc <alc@FreeBSD.org> | 1999-08-11 05:12:00 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 1999-08-11 05:12:00 +0000 |
commit | 157bb2131dedacfba7d75ce8e12e589794388075 (patch) | |
tree | 2385439cec635525a7d4332790520d8be2c94d18 /sys | |
parent | a43033276afd38b605a7ebc1e155dbc0790c34d7 (diff) | |
download | FreeBSD-src-157bb2131dedacfba7d75ce8e12e589794388075.zip FreeBSD-src-157bb2131dedacfba7d75ce8e12e589794388075.tar.gz |
contigmalloc1:
If a page is found in the wrong queue, panic instead
of silently ignoring the problem.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_page.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 2fd64cf..be60e09 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91 - * $Id: vm_page.c,v 1.136 1999/07/31 18:30:59 alc Exp $ + * $Id: vm_page.c,v 1.137 1999/08/10 22:21:13 peter Exp $ */ /* @@ -1684,9 +1684,8 @@ again1: m != NULL; m = next) { - if (m->queue != PQ_INACTIVE) { - break; - } + KASSERT(m->queue == PQ_INACTIVE, + ("contigmalloc1: page %p is not PQ_INACTIVE", m)); next = TAILQ_NEXT(m, pageq); if (vm_page_sleep_busy(m, TRUE, "vpctw0")) @@ -1712,9 +1711,8 @@ again1: m != NULL; m = next) { - if (m->queue != PQ_ACTIVE) { - break; - } + KASSERT(m->queue == PQ_ACTIVE, + ("contigmalloc1: page %p is not PQ_ACTIVE", m)); next = TAILQ_NEXT(m, pageq); if (vm_page_sleep_busy(m, TRUE, "vpctw1")) |