From 61083fcc613a287c350c6f4e8da11eff19a53fa0 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 5 Oct 2013 18:53:03 +0000 Subject: [PATCH] Tidy up kmeminit(): Since r245575, 'nmbclusters' is calculated after kmeminit() runs, so it contributes nothing to 'vm_kmem_size'; update a comment to reflect that r254025 replaced the kmem submap with the kmem arena. Reviewed by: kib Approved by: re (gjb) Sponsored by: EMC / Isilon Storage Division --- sys/kern/kern_malloc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 911643357376..bab745623d09 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$"); #include #include #include -#include #include #include #include @@ -699,10 +698,10 @@ kmeminit(void) * VM_KMEM_SIZE_MAX is dependent on the maximum KVA space * available. * - * Note that the kmem_map is also used by the zone allocator, + * Note that the kmem arena is also used by the zone allocator, * so make sure that there is enough space. */ - vm_kmem_size = VM_KMEM_SIZE + nmbclusters * PAGE_SIZE; + vm_kmem_size = VM_KMEM_SIZE; mem_size = cnt.v_page_count; #if defined(VM_KMEM_SIZE_SCALE)