diff options
author | dyson <dyson@FreeBSD.org> | 1997-05-01 14:36:01 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1997-05-01 14:36:01 +0000 |
commit | 8d05a007265615c1c227a4a26ce67b995c69fbe9 (patch) | |
tree | c907c4e80edef57e46a6a4be7f20343c08054e29 /sys/vm | |
parent | b0d268e71fb37166b2b2d8cfc7f204d5c31ca3a0 (diff) | |
download | FreeBSD-src-8d05a007265615c1c227a4a26ce67b995c69fbe9.zip FreeBSD-src-8d05a007265615c1c227a4a26ce67b995c69fbe9.tar.gz |
Check the correct queue for waking up the pageout daemon. Specifically,
the pageout daemon wasn't always being waken up appropriately when the
(cache + free) queues were depleted.
Submitted by: David S. Miller <davem@jenolan.rutgers.edu>
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_page.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index d06711b..fdb82c1 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91 - * $Id: vm_page.c,v 1.76 1997/02/22 09:48:31 peter Exp $ + * $Id: vm_page.c,v 1.77 1997/03/23 02:44:54 dyson Exp $ */ /* @@ -577,7 +577,7 @@ vm_page_unqueue(m) TAILQ_REMOVE(pq->pl, m, pageq); --(*pq->cnt); --(*pq->lcnt); - if ((m->queue - m->pc) == PQ_CACHE) { + if ((queue - m->pc) == PQ_CACHE) { if ((cnt.v_cache_count + cnt.v_free_count) < (cnt.v_free_reserved + cnt.v_cache_min)) pagedaemon_wakeup(); |