Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/vm_reserv.c
Show First 20 Lines • Show All 774 Lines • ▼ Show 20 Lines | m = vm_phys_alloc_contig(domain, allocpages, low, high, | ||||
boundary > VM_LEVEL_0_SIZE ? boundary : 0); | boundary > VM_LEVEL_0_SIZE ? boundary : 0); | ||||
vm_domain_free_unlock(vmd); | vm_domain_free_unlock(vmd); | ||||
if (m == NULL) { | if (m == NULL) { | ||||
vm_domain_freecnt_inc(vmd, npages); | vm_domain_freecnt_inc(vmd, npages); | ||||
return (NULL); | return (NULL); | ||||
} | } | ||||
} else | } else | ||||
return (NULL); | return (NULL); | ||||
KASSERT(vm_phys_domain(m) == domain, | KASSERT(vm_phys_page_domain(m) == domain, | ||||
("vm_reserv_alloc_contig: Page domain does not match requested.")); | ("vm_reserv_alloc_contig: Page domain does not match requested.")); | ||||
/* | /* | ||||
* The allocated physical pages always begin at a reservation | * The allocated physical pages always begin at a reservation | ||||
* boundary, but they do not always end at a reservation boundary. | * boundary, but they do not always end at a reservation boundary. | ||||
* Initialize every reservation that is completely covered by the | * Initialize every reservation that is completely covered by the | ||||
* allocated physical pages. | * allocated physical pages. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 709 Lines • Show Last 20 Lines |