Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/vm_pagequeue.h
Show First 20 Lines • Show All 383 Lines • ▼ Show 20 Lines | |||||
* vm_pagequeue_domain: | * vm_pagequeue_domain: | ||||
* | * | ||||
* Return the memory domain the page belongs to. | * Return the memory domain the page belongs to. | ||||
*/ | */ | ||||
static inline struct vm_domain * | static inline struct vm_domain * | ||||
vm_pagequeue_domain(vm_page_t m) | vm_pagequeue_domain(vm_page_t m) | ||||
{ | { | ||||
return (VM_DOMAIN(vm_phys_domain(m))); | return (VM_DOMAIN(vm_page_domain(m))); | ||||
} | } | ||||
/* | /* | ||||
* Return the number of pages we need to free-up or cache | * Return the number of pages we need to free-up or cache | ||||
* A positive number indicates that we do not have enough free pages. | * A positive number indicates that we do not have enough free pages. | ||||
*/ | */ | ||||
static inline int | static inline int | ||||
vm_paging_target(struct vm_domain *vmd) | vm_paging_target(struct vm_domain *vmd) | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |