diff options
author | alc <alc@FreeBSD.org> | 2013-10-05 18:53:03 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2013-10-05 18:53:03 +0000 |
commit | 4c5162818b555752118dc7e7a0600e412cd8a833 (patch) | |
tree | a74683ba37371e2b2f6d8557310f50cddc32c61c | |
parent | 181aa517b67152fddacaf403324243217fa46ca0 (diff) | |
download | FreeBSD-src-4c5162818b555752118dc7e7a0600e412cd8a833.zip FreeBSD-src-4c5162818b555752118dc7e7a0600e412cd8a833.tar.gz |
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
-rw-r--r-- | sys/kern/kern_malloc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index 9116433..bab7456 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$"); #include <sys/kernel.h> #include <sys/lock.h> #include <sys/malloc.h> -#include <sys/mbuf.h> #include <sys/mutex.h> #include <sys/vmmeter.h> #include <sys/proc.h> @@ -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) |