diff options
author | Mark Johnston <markj@FreeBSD.org> | 2020-08-17 13:02:01 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2020-08-17 13:02:01 +0000 |
commit | 7dd979dfef808a62a0f1092ac6772f489ca6b0ac (patch) | |
tree | b753e34be89f90107a311ea899a37dab2ec9435f /sys/vm/vm_extern.h | |
parent | fd6eb8fec71df54bc03019dffc9b724c429a1634 (diff) | |
download | src-7dd979dfef808a62a0f1092ac6772f489ca6b0ac.tar.gz src-7dd979dfef808a62a0f1092ac6772f489ca6b0ac.zip |
Remove the VM map zone.
Today, the zone is only used to allocate a trio of kernel maps: the
kernel map itself, and the exec and pipe submaps. Maps for user
processes are dynamically allocated but are embedded in the vmspace
structure, which is allocated from its own zone. Make the
aforementioned kernel maps statically allocated and get rid of the zone.
While here, remove a stale comment above vmspace_alloc() and change the
names of locks initialized in vm_map_init() to match vmspace_zinit().
Reported by: alc
Reviewed by: alc, kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D26052
Notes
Notes:
svn path=/head/; revision=364302
Diffstat (limited to 'sys/vm/vm_extern.h')
-rw-r--r-- | sys/vm/vm_extern.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_extern.h b/sys/vm/vm_extern.h index 25fd9e503967..acdb361d3262 100644 --- a/sys/vm/vm_extern.h +++ b/sys/vm/vm_extern.h @@ -77,8 +77,8 @@ void kmem_unback(vm_object_t, vm_offset_t, vm_size_t); /* Bootstrapping. */ void kmem_bootstrap_free(vm_offset_t, vm_size_t); -vm_map_t kmem_suballoc(vm_map_t, vm_offset_t *, vm_offset_t *, vm_size_t, - boolean_t); +void kmem_subinit(vm_map_t, vm_map_t, vm_offset_t *, vm_offset_t *, vm_size_t, + bool); void kmem_init(vm_offset_t, vm_offset_t); void kmem_init_zero_region(void); void kmeminit(void); |