summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-03-28 05:58:35 +0000
committerdg <dg@FreeBSD.org>1995-03-28 05:58:35 +0000
commita2d4bff1956ef300ed8cf14a2b7a9aee7a14bb02 (patch)
tree823e8196bc5e5683e698dabf90877a15c17fccda /sys/vm
parentfa677cd532f64677e012f15c30fb00e2a3ff1ad6 (diff)
downloadFreeBSD-src-a2d4bff1956ef300ed8cf14a2b7a9aee7a14bb02.zip
FreeBSD-src-a2d4bff1956ef300ed8cf14a2b7a9aee7a14bb02.tar.gz
Fixed typo...using wrong variable in page_shortage calculation.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_pageout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index 68accc8..f372873 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -65,7 +65,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: vm_pageout.c,v 1.42 1995/03/16 18:17:28 bde Exp $
+ * $Id: vm_pageout.c,v 1.43 1995/03/28 05:35:29 davidg Exp $
*/
/*
@@ -618,7 +618,7 @@ rescan1:
(cnt.v_free_count + cnt.v_inactive_count + cnt.v_cache_count);
if (page_shortage <= 0) {
if (pages_freed == 0) {
- page_shortage = cnt.v_free_min - cnt.v_inactive_count;
+ page_shortage = cnt.v_free_min - cnt.v_free_count;
}
}
maxscan = min(cnt.v_active_count, MAXSCAN);
OpenPOWER on IntegriCloud