Having fewer places manipulating the global list of active/inactive pages
will help future LRU improvements.
ok kettenis@, kn@
-/* $OpenBSD: uvm_page.c,v 1.163 2022/03/12 12:34:22 mpi Exp $ */
+/* $OpenBSD: uvm_page.c,v 1.164 2022/04/28 09:59:28 mpi Exp $ */
/* $NetBSD: uvm_page.c,v 1.44 2000/11/27 08:40:04 chs Exp $ */
/*
pg->wire_count--;
if (pg->wire_count == 0) {
- TAILQ_INSERT_TAIL(&uvm.page_active, pg, pageq);
- uvmexp.active++;
- atomic_setbits_int(&pg->pg_flags, PQ_ACTIVE);
+ uvm_pageactivate(pg);
uvmexp.wired--;
}
}