mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 16:54:02 +00:00
Simplify vmspace_dofree().
This commit is contained in:
parent
7162e01ce9
commit
717f7d5962
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153095
|
@ -296,10 +296,8 @@ vmspace_dofree(struct vmspace *vm)
|
|||
* Delete all of the mappings and pages they hold, then call
|
||||
* the pmap module to reclaim anything left.
|
||||
*/
|
||||
vm_map_lock(&vm->vm_map);
|
||||
(void) vm_map_delete(&vm->vm_map, vm->vm_map.min_offset,
|
||||
(void)vm_map_remove(&vm->vm_map, vm->vm_map.min_offset,
|
||||
vm->vm_map.max_offset);
|
||||
vm_map_unlock(&vm->vm_map);
|
||||
|
||||
uma_zfree(vmspace_zone, vm);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue