PERFORCE change 109544 for review

John Baldwin jhb at FreeBSD.org
Wed Nov 8 19:18:27 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=109544

Change 109544 by jhb at jhb_mutex on 2006/11/08 19:15:50

	IFC @109542.

Affected files ...

.. //depot/projects/smpng/sys/vm/vm_page.c#86 integrate

Differences ...

==== //depot/projects/smpng/sys/vm/vm_page.c#86 (text+ko) ====

@@ -97,7 +97,7 @@
  */
 
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/sys/vm/vm_page.c,v 1.331 2006/11/08 18:43:47 alc Exp $");
+__FBSDID("$FreeBSD: src/sys/vm/vm_page.c,v 1.332 2006/11/08 19:11:54 alc Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -320,6 +320,12 @@
 	phys_avail[biggestone + 1] = new_end;
 
 	/*
+	 * Clear all of the page structures
+	 */
+	bzero((caddr_t) vm_page_array, page_range * sizeof(struct vm_page));
+	vm_page_array_size = page_range;
+
+	/*
 	 * This assertion tests the hypothesis that npages and total are
 	 * redundant.  XXX
 	 */
@@ -330,12 +336,6 @@
 	    ("vm_page_startup: inconsistent page counts"));
 
 	/*
-	 * Clear all of the page structures
-	 */
-	bzero((caddr_t) vm_page_array, page_range * sizeof(struct vm_page));
-	vm_page_array_size = page_range;
-
-	/*
 	 * Construct the free queue(s) in descending order (by physical
 	 * address) so that the first 16MB of physical memory is allocated
 	 * last rather than first.  On large-memory machines, this avoids


More information about the p4-projects mailing list