aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/vm_pageout.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vm_pageout.c')
-rw-r--r--sys/vm/vm_pageout.c9
1 files changed, 2 insertions, 7 deletions
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 @@ 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);
/*