* Return TRUE if we are under our severe low-free-pages threshold * * These routines are typically used at the user<->system interface to determine * whether we need to block in order to avoid a low memory deadlock. */
| 184 | * whether we need to block in order to avoid a low memory deadlock. |
| 185 | */ |
| 186 | static inline int |
| 187 | vm_page_count_severe(void) |
| 188 | { |
| 189 | |
| 190 | return (!DOMAINSET_EMPTY(&vm_severe_domains)); |
| 191 | } |
| 192 | |
| 193 | static inline int |
| 194 | vm_page_count_severe_domain(int domain) |
no outgoing calls
no test coverage detected