diff options
author | Alan Cox <alc@FreeBSD.org> | 2003-10-22 03:08:24 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2003-10-22 03:08:24 +0000 |
commit | d3c09dd7dbf75c5157fa84bd4d866750021c68ad (patch) | |
tree | 63c0c50778a80c31dac273049192180b7395b82b | |
parent | 923959c28fb6fd73127ead41f2af2d7ca214ca2d (diff) | |
download | src-d3c09dd7dbf75c5157fa84bd4d866750021c68ad.tar.gz src-d3c09dd7dbf75c5157fa84bd4d866750021c68ad.zip |
- Assert that every page found in the active queue is an active page.
Notes
Notes:
svn path=/head/; revision=121321
-rw-r--r-- | sys/vm/vm_pageout.c | 9 |
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); /* |