* Return the next page to be scanned, or NULL if the scan is complete. */
| 314 | * Return the next page to be scanned, or NULL if the scan is complete. |
| 315 | */ |
| 316 | static __always_inline vm_page_t |
| 317 | vm_pageout_next(struct scan_state *ss, const bool dequeue) |
| 318 | { |
| 319 | |
| 320 | if (ss->bq.bq_cnt == 0) |
| 321 | vm_pageout_collect_batch(ss, dequeue); |
| 322 | return (vm_batchqueue_pop(&ss->bq)); |
| 323 | } |
| 324 | |
| 325 | /* |
| 326 | * Determine whether processing of a page should be deferred and ensure that any |
no test coverage detected