From owner-p4-projects@FreeBSD.ORG Tue Jan 31 07:45:18 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7DC9416A423; Tue, 31 Jan 2006 07:45:17 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AA3416A420 for ; Tue, 31 Jan 2006 07:45:17 +0000 (GMT) (envelope-from alc@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D59443D45 for ; Tue, 31 Jan 2006 07:45:17 +0000 (GMT) (envelope-from alc@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k0V7jGYT007918 for ; Tue, 31 Jan 2006 07:45:16 GMT (envelope-from alc@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k0V7jG9i007915 for perforce@freebsd.org; Tue, 31 Jan 2006 07:45:16 GMT (envelope-from alc@freebsd.org) Date: Tue, 31 Jan 2006 07:45:16 GMT Message-Id: <200601310745.k0V7jG9i007915@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to alc@freebsd.org using -f From: Alan Cox To: Perforce Change Reviews Cc: Subject: PERFORCE change 90768 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2006 07:45:18 -0000 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();