Date: Tue, 31 Jan 2006 07:45:16 GMT From: Alan Cox <alc@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 90768 for review Message-ID: <200601310745.k0V7jG9i007915@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=90768 Change 90768 by alc@alc_home on 2006/01/31 07:44:37 Change #if defined(DIAGNOSTIC) to KASSERT. Affected files ... .. //depot/projects/superpages/src/sys/vm/vm_page.c#15 edit Differences ... ==== //depot/projects/superpages/src/sys/vm/vm_page.c#15 (text+ko) ==== @@ -832,10 +832,9 @@ */ vm_page_lock_queues(); if ((m = vm_page_select_cache()) == 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();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601310745.k0V7jG9i007915>