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

Function vm_pageout_reinsert_inactive_page

freebsd/vm/vm_pageout.c:1377–1391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1375}
1376
1377static int
1378vm_pageout_reinsert_inactive_page(struct vm_pagequeue *pq, vm_page_t marker,
1379 vm_page_t m)
1380{
1381 vm_page_astate_t as;
1382
1383 vm_pagequeue_assert_locked(pq);
1384
1385 as = vm_page_astate_load(m);
1386 if (as.queue != PQ_INACTIVE || (as.flags & PGA_ENQUEUED) != 0)
1387 return (0);
1388 vm_page_aflag_set(m, PGA_ENQUEUED);
1389 TAILQ_INSERT_BEFORE(marker, m, plinks.q);
1390 return (1);
1391}
1392
1393/*
1394 * Re-add stuck pages to the inactive queue. We will examine them again

Callers 1

Calls 2

vm_page_astate_loadFunction · 0.85
vm_page_aflag_setFunction · 0.85

Tested by

no test coverage detected