From d3c09dd7dbf75c5157fa84bd4d866750021c68ad Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 22 Oct 2003 03:08:24 +0000 Subject: [PATCH] - Assert that every page found in the active queue is an active page. --- sys/vm/vm_pageout.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index a073613220a..f2c9af418c6 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -1033,13 +1033,8 @@ unlock_and_continue: while ((m != NULL) && (pcount-- > 0) && (page_shortage > 0)) { - /* - * This is a consistency check, and should likely be a panic - * or warning. - */ - if (m->queue != PQ_ACTIVE) { - break; - } + KASSERT(m->queue == PQ_ACTIVE, + ("vm_pageout_scan: page %p isn't active", m)); next = TAILQ_NEXT(m, pageq); /*