MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vm_pageout_next

Function vm_pageout_next

freebsd/vm/vm_pageout.c:316–323  ·  view source on GitHub ↗

* Return the next page to be scanned, or NULL if the scan is complete. */

Source from the content-addressed store, hash-verified

314 * Return the next page to be scanned, or NULL if the scan is complete.
315 */
316static __always_inline vm_page_t
317vm_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

Callers 3

vm_pageout_launderFunction · 0.85
vm_pageout_scan_activeFunction · 0.85
vm_pageout_scan_inactiveFunction · 0.85

Calls 2

vm_pageout_collect_batchFunction · 0.85
vm_batchqueue_popFunction · 0.85

Tested by

no test coverage detected