summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-02-02 07:16:40 +0000
committeralc <alc@FreeBSD.org>2003-02-02 07:16:40 +0000
commit999c7e2247cae0427d431a2ff518fb73efa28ba0 (patch)
treec310040fa58e71c4811a90773e2a394755fb843a /sys/vm
parentf2f732f720012f043ea9ada1b007700b50dfbeff (diff)
downloadFreeBSD-src-999c7e2247cae0427d431a2ff518fb73efa28ba0.zip
FreeBSD-src-999c7e2247cae0427d431a2ff518fb73efa28ba0.tar.gz
- It's more accurate to say that vm_paging_needed() returns TRUE
than a positive number. - In pagedaemon_wakeup(), set vm_pages_needed to 1 rather than incrementing it to accomplish the same.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_pageout.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index 79cc7ed..427d351 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -1440,7 +1440,7 @@ vm_pageout()
* waste a lot of cpu.
*/
if (vm_pages_needed && !vm_page_count_min()) {
- if (vm_paging_needed() <= 0)
+ if (!vm_paging_needed())
vm_pages_needed = 0;
wakeup(&cnt.v_free_count);
}
@@ -1484,8 +1484,9 @@ vm_pageout()
void
pagedaemon_wakeup()
{
+
if (!vm_pages_needed && curthread->td_proc != pageproc) {
- vm_pages_needed++;
+ vm_pages_needed = 1;
wakeup(&vm_pages_needed);
}
}
OpenPOWER on IntegriCloud