* Wait for free pages to exceed the min threshold globally. */
| 3136 | * Wait for free pages to exceed the min threshold globally. |
| 3137 | */ |
| 3138 | void |
| 3139 | vm_wait_min(void) |
| 3140 | { |
| 3141 | |
| 3142 | mtx_lock(&vm_domainset_lock); |
| 3143 | while (vm_page_count_min()) { |
| 3144 | vm_min_waiters++; |
| 3145 | msleep(&vm_min_domains, &vm_domainset_lock, PVM, "vmwait", 0); |
| 3146 | } |
| 3147 | mtx_unlock(&vm_domainset_lock); |
| 3148 | } |
| 3149 | |
| 3150 | /* |
| 3151 | * Wait for free pages to exceed the severe threshold globally. |
nothing calls this directly
no test coverage detected