| 2056 | } |
| 2057 | |
| 2058 | int |
| 2059 | vm_domain_allocate(struct vm_domain *vmd, int req, int npages) |
| 2060 | { |
| 2061 | int req_class; |
| 2062 | |
| 2063 | /* |
| 2064 | * The page daemon is allowed to dig deeper into the free page list. |
| 2065 | */ |
| 2066 | req_class = req & VM_ALLOC_CLASS_MASK; |
| 2067 | if (curproc == pageproc && req_class != VM_ALLOC_INTERRUPT) |
| 2068 | req_class = VM_ALLOC_SYSTEM; |
| 2069 | return (_vm_domain_allocate(vmd, req_class, npages)); |
| 2070 | } |
| 2071 | |
| 2072 | vm_page_t |
| 2073 | vm_page_alloc_domain_after(vm_object_t object, vm_pindex_t pindex, int domain, |
no test coverage detected