Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_fault.c
Show First 20 Lines • Show All 1,188 Lines • ▼ Show 20 Lines | |||||
#if VM_NRESERVLEVEL > 0 | #if VM_NRESERVLEVEL > 0 | ||||
/* | /* | ||||
* Rename the reservation. | * Rename the reservation. | ||||
*/ | */ | ||||
vm_reserv_rename(fs.m, fs.first_object, | vm_reserv_rename(fs.m, fs.first_object, | ||||
fs.object, OFF_TO_IDX( | fs.object, OFF_TO_IDX( | ||||
fs.first_object->backing_object_offset)); | fs.first_object->backing_object_offset)); | ||||
#endif | #endif | ||||
/* | |||||
* Removing the page from the backing object | |||||
* unbusied it. | |||||
*/ | |||||
vm_page_xbusy(fs.m); | |||||
fs.first_m = fs.m; | fs.first_m = fs.m; | ||||
fs.m = NULL; | fs.m = NULL; | ||||
VM_CNT_INC(v_cow_optim); | VM_CNT_INC(v_cow_optim); | ||||
} else { | } else { | ||||
/* | /* | ||||
* Oh, well, lets copy it. | * Oh, well, lets copy it. | ||||
*/ | */ | ||||
pmap_copy_page(fs.m, fs.first_m); | pmap_copy_page(fs.m, fs.first_m); | ||||
▲ Show 20 Lines • Show All 671 Lines • Show Last 20 Lines |