vm_fault.c (210a688642f7e851e453853f45cdc90e016df1ff) vm_fault.c (e4ed417a355e2cfcb7ee5b9caa6be9c2ed239fae)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1994 John S. Dyson
5 * All rights reserved.
6 * Copyright (c) 1994 David Greenman
7 * All rights reserved.
8 *

--- 1165 unchanged lines hidden (view full) ---

1174 ("vm_fault_copy_entry: leaked swp charge"));
1175 dst_object->uip = curthread->td_ucred->cr_ruidinfo;
1176 uihold(dst_object->uip);
1177 *fork_charge += dst_object->charge;
1178 } else {
1179 dst_object->uip = dst_entry->uip;
1180 dst_entry->uip = NULL;
1181 }
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1994 John S. Dyson
5 * All rights reserved.
6 * Copyright (c) 1994 David Greenman
7 * All rights reserved.
8 *

--- 1165 unchanged lines hidden (view full) ---

1174 ("vm_fault_copy_entry: leaked swp charge"));
1175 dst_object->uip = curthread->td_ucred->cr_ruidinfo;
1176 uihold(dst_object->uip);
1177 *fork_charge += dst_object->charge;
1178 } else {
1179 dst_object->uip = dst_entry->uip;
1180 dst_entry->uip = NULL;
1181 }
1182 access = prot = dst_entry->max_protection;
1182 access = prot = dst_entry->protection;
1183 /*
1184 * If not an upgrade, then enter the mappings in the pmap as
1185 * read and/or execute accesses. Otherwise, enter them as
1186 * write accesses.
1187 *
1188 * A writeable large page mapping is only created if all of
1189 * the constituent small page mappings are modified. Marking
1190 * PTEs as modified on inception allows promotion to happen

--- 206 unchanged lines hidden ---
1183 /*
1184 * If not an upgrade, then enter the mappings in the pmap as
1185 * read and/or execute accesses. Otherwise, enter them as
1186 * write accesses.
1187 *
1188 * A writeable large page mapping is only created if all of
1189 * the constituent small page mappings are modified. Marking
1190 * PTEs as modified on inception allows promotion to happen

--- 206 unchanged lines hidden ---