1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68261

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,