]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove the VM map zone.
authorMark Johnston <markj@FreeBSD.org>
Mon, 17 Aug 2020 13:02:01 +0000 (13:02 +0000)
committerMark Johnston <markj@FreeBSD.org>
Mon, 17 Aug 2020 13:02:01 +0000 (13:02 +0000)
commit7dd979dfef808a62a0f1092ac6772f489ca6b0ac
treeb753e34be89f90107a311ea899a37dab2ec9435f
parentfd6eb8fec71df54bc03019dffc9b724c429a1634
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
sys/vm/vm_extern.h
sys/vm/vm_init.c
sys/vm/vm_kern.c
sys/vm/vm_kern.h
sys/vm/vm_map.c
sys/vm/vm_map.h