diff options
author | 2013-02-07 17:29:31 +0000 | |
---|---|---|
committer | 2013-02-07 17:29:31 +0000 | |
commit | f16ed4b567ff73f5210408deac61301117b23aa9 (patch) | |
tree | 9e7efba14112c7ec607f3f19ed938fb02cea1bf2 | |
parent | Sync. (diff) | |
download | wireguard-openbsd-f16ed4b567ff73f5210408deac61301117b23aa9.tar.xz wireguard-openbsd-f16ed4b567ff73f5210408deac61301117b23aa9.zip |
make sure the page daemon considers BUFPAGES_INACT when deciding
to do work, just as is done when waking it up.
tested by me, phessler@, espie@, landry@
ok kettenis@
-rw-r--r-- | sys/uvm/uvm_pdaemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_pdaemon.c b/sys/uvm/uvm_pdaemon.c index d85750a839d..d1ecf3e7284 100644 --- a/sys/uvm/uvm_pdaemon.c +++ b/sys/uvm/uvm_pdaemon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_pdaemon.c,v 1.61 2012/12/10 22:42:54 beck Exp $ */ +/* $OpenBSD: uvm_pdaemon.c,v 1.62 2013/02/07 17:29:31 beck Exp $ */ /* $NetBSD: uvm_pdaemon.c,v 1.23 2000/08/20 10:24:14 bjh21 Exp $ */ /* @@ -981,7 +981,7 @@ uvmpd_scan(void) * our inactive target. */ - inactive_shortage = uvmexp.inactarg - uvmexp.inactive; + inactive_shortage = uvmexp.inactarg - uvmexp.inactive - BUFPAGES_INACT; /* * detect if we're not going to be able to page anything out |