-/* $OpenBSD: uvm_page.c,v 1.162 2022/03/10 10:46:56 mpi Exp $ */
+/* $OpenBSD: uvm_page.c,v 1.163 2022/03/12 12:34:22 mpi Exp $ */
/* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */
/*
if (pg->pg_flags & PG_TABLED)
uvm_pageremove(pg);
- /* now remove the page from the queues */
+ /*
+ * now remove the page from the queues
+ */
if (pg->pg_flags & PQ_ACTIVE) {
TAILQ_REMOVE(&uvm.page_active, pg, pageq);
flags_to_clear |= PQ_ACTIVE;
uvmexp.inactive--;
}
- /* if the page was wired, unwire it now. */
+ /*
+ * if the page was wired, unwire it now.
+ */
if (pg->wire_count) {
pg->wire_count = 0;
uvmexp.wired--;
-/* $OpenBSD: uvm_pdaemon.c,v 1.94 2021/12/15 12:53:53 mpi Exp $ */
+/* $OpenBSD: uvm_pdaemon.c,v 1.95 2022/03/12 12:34:22 mpi Exp $ */
/* $NetBSD: uvm_pdaemon.c,v 1.23 2000/08/20 10:24:14 bjh21 Exp $ */
/*
uvm_unlock_fpageq();
- /* now lock page queues and recompute inactive count */
+ /*
+ * now lock page queues and recompute inactive count
+ */
uvm_lock_pageq();
if (npages != uvmexp.npages) { /* check for new pages? */
npages = uvmexp.npages;
#endif
uvm_lock_pageq();
- /* Scan if needed to meet our targets. */
+ /*
+ * scan if needed
+ */
if (pma != NULL ||
((uvmexp.free - BUFPAGES_DEFICIT) < uvmexp.freetarg) ||
((uvmexp.inactive + BUFPAGES_INACT) < uvmexp.inactarg)) {
}
uvm_unlock_fpageq();
- /* scan done. unlock page queues (only lock we are holding) */
+ /*
+ * scan done. unlock page queues (the only lock we are holding)
+ */
uvm_unlock_pageq();
sched_pause(yield);