diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2022-04-28 09:59:29 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2022-04-28 09:59:29 +0000 |
commit | c10d2ecc308034a538f209f1c70f8ccad6a6330b (patch) | |
tree | 05f1f15863519f9deb2a6dee24a6ce2bba00a615 /sys/uvm | |
parent | 387c9b5809c67b6ec60a260fe18cffdf940ee3b8 (diff) |
Call uvm_pageactivate() from uvm_pageunwire() instead of rerolling it.
Having fewer places manipulating the global list of active/inactive pages
will help future LRU improvements.
ok kettenis@, kn@
Diffstat (limited to 'sys/uvm')
-rw-r--r-- | sys/uvm/uvm_page.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c index 3dd327d25d9..7716597b640 100644 --- a/sys/uvm/uvm_page.c +++ b/sys/uvm/uvm_page.c @@ -1,4 +1,4 @@ -/* $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 $ */ /* @@ -1279,9 +1279,7 @@ uvm_pageunwire(struct vm_page *pg) 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--; } } |