Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/vm_reserv.c
Show First 20 Lines • Show All 943 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
static void | static void | ||||
vm_reserv_break(vm_reserv_t rv, vm_page_t m) | vm_reserv_break(vm_reserv_t rv, vm_page_t m) | ||||
{ | { | ||||
int begin_zeroes, hi, i, lo; | int begin_zeroes, hi, i, lo; | ||||
vm_domain_free_assert_locked(VM_DOMAIN(rv->domain)); | vm_domain_free_assert_locked(VM_DOMAIN(rv->domain)); | ||||
vm_reserv_remove(rv); | vm_reserv_remove(rv); | ||||
rv->pages->psind = 0; | |||||
if (m != NULL) { | if (m != NULL) { | ||||
/* | /* | ||||
* Since the reservation is being broken, there is no harm in | * Since the reservation is being broken, there is no harm in | ||||
* abusing the population map to stop "m" from being returned | * abusing the population map to stop "m" from being returned | ||||
* to the physical memory allocator. | * to the physical memory allocator. | ||||
*/ | */ | ||||
i = m - rv->pages; | i = m - rv->pages; | ||||
KASSERT(popmap_is_clear(rv->popmap, i), | KASSERT(popmap_is_clear(rv->popmap, i), | ||||
▲ Show 20 Lines • Show All 416 Lines • Show Last 20 Lines |