aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2006-01-31 19:06:51 +0000
committerAlan Cox <alc@FreeBSD.org>2006-01-31 19:06:51 +0000
commit6c237adcea92f538d7533d9166d14eb88fa4ffe0 (patch)
treead10bea6f87f35d0c2da1620246730cea9f7a0e0 /sys
parent4a46d2a6dfe3b87ed291ae805761bf29c897b621 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_page.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index c8823648aac2..caf9125cb344 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -809,10 +809,9 @@ loop:
*/
vm_page_lock_queues();
if ((m = vm_page_select_cache(color)) == NULL) {
-#if defined(DIAGNOSTIC)
- if (cnt.v_cache_count > 0)
- printf("vm_page_alloc(NORMAL): missing pages on cache queue: %d\n", cnt.v_cache_count);
-#endif
+ KASSERT(cnt.v_cache_count == 0,
+ ("vm_page_alloc: cache queue is missing %d pages",
+ cnt.v_cache_count));
vm_page_unlock_queues();
atomic_add_int(&vm_pageout_deficit, 1);
pagedaemon_wakeup();