svn commit: r197661 - head/sys/vm
Konstantin Belousov
kib at FreeBSD.org
Thu Oct 1 12:48:36 UTC 2009
Author: kib
Date: Thu Oct 1 12:48:35 2009
New Revision: 197661
URL: http://svn.freebsd.org/changeset/base/197661
Log:
Move the annotation for vm_map_startup() immediately before the function.
MFC after: 3 days
Modified:
head/sys/vm/vm_map.c
Modified: head/sys/vm/vm_map.c
==============================================================================
--- head/sys/vm/vm_map.c Thu Oct 1 12:46:58 2009 (r197660)
+++ head/sys/vm/vm_map.c Thu Oct 1 12:48:35 2009 (r197661)
@@ -116,22 +116,6 @@ __FBSDID("$FreeBSD$");
* another, and then marking both regions as copy-on-write.
*/
-/*
- * vm_map_startup:
- *
- * Initialize the vm_map module. Must be called before
- * any other vm_map routines.
- *
- * Map and entry structures are allocated from the general
- * purpose memory pool with some exceptions:
- *
- * - The kernel map and kmem submap are allocated statically.
- * - Kernel map entries are allocated out of a static pool.
- *
- * These restrictions are necessary since malloc() uses the
- * maps and requires map entries.
- */
-
static struct mtx map_sleep_mtx;
static uma_zone_t mapentzone;
static uma_zone_t kmapentzone;
@@ -176,6 +160,22 @@ static void vmspace_zdtor(void *mem, int
start = end; \
}
+/*
+ * vm_map_startup:
+ *
+ * Initialize the vm_map module. Must be called before
+ * any other vm_map routines.
+ *
+ * Map and entry structures are allocated from the general
+ * purpose memory pool with some exceptions:
+ *
+ * - The kernel map and kmem submap are allocated statically.
+ * - Kernel map entries are allocated out of a static pool.
+ *
+ * These restrictions are necessary since malloc() uses the
+ * maps and requires map entries.
+ */
+
void
vm_map_startup(void)
{
More information about the svn-src-head
mailing list