diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index a073613220ad..f2c9af418c6e 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -1033,13 +1033,8 @@ vm_pageout_scan(int pass) 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); /*