Clear the MAP_ENTRY_USER_WIRED flag from cloned vm_map entries.

PR:		2840
This commit is contained in:
Tor Egge 2000-11-02 21:38:18 +00:00
parent 1d7e3e42e7
commit 028fe6ec24

View File

@ -2149,6 +2149,7 @@ vmspace_fork(vm1)
*/
new_entry = vm_map_entry_create(new_map);
*new_entry = *old_entry;
new_entry->eflags &= ~MAP_ENTRY_USER_WIRED;
new_entry->wired_count = 0;
/*
@ -2175,6 +2176,7 @@ vmspace_fork(vm1)
*/
new_entry = vm_map_entry_create(new_map);
*new_entry = *old_entry;
new_entry->eflags &= ~MAP_ENTRY_USER_WIRED;
new_entry->wired_count = 0;
new_entry->object.vm_object = NULL;
vm_map_entry_link(new_map, new_map->header.prev,