diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2013-02-07 17:29:32 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2013-02-07 17:29:32 +0000 |
commit | d5b300abf19b9f371d02d783d53140e17691c9fa (patch) | |
tree | e32229c42502b835aa03f433b0cd173cc730a6c9 /sys | |
parent | ac2aeb432ab1267085e3025d9d4310e22ac95f6a (diff) |
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@
Diffstat (limited to 'sys')
-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 |