diff options
| author | John Dyson <dyson@FreeBSD.org> | 1996-06-17 03:35:40 +0000 |
|---|---|---|
| committer | John Dyson <dyson@FreeBSD.org> | 1996-06-17 03:35:40 +0000 |
| commit | ef743ce6ed4400c7d4806e9c4a0ca90098969965 (patch) | |
| tree | 8fc6a057fe853dbb744df6b99c93762955bf2c22 /sys/vm/vm_page.c | |
| parent | 6875d5c1b337fa19243fc5783e952734db914b74 (diff) | |
Notes
Diffstat (limited to 'sys/vm/vm_page.c')
| -rw-r--r-- | sys/vm/vm_page.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index d33495fce100..445c20742c20 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.56 1996/06/12 06:52:06 dyson Exp $ + * $Id: vm_page.c,v 1.57 1996/06/16 20:37:31 dyson Exp $ */ /* @@ -802,12 +802,13 @@ vm_page_free_wakeup() * high water mark. And wakeup scheduler process if we have * lots of memory. this process will swapin processes. */ - if ((cnt.v_free_count + cnt.v_cache_count) == cnt.v_free_min) { + if (vm_pages_needed && + ((cnt.v_free_count + cnt.v_cache_count) >= cnt.v_free_min)) { wakeup(&cnt.v_free_count); + vm_pages_needed = 0; } } - /* * vm_page_free: * |
