From 883f3caa13f9cc9f2b8d4ecf59c6766eaf5e8929 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 29 May 2000 02:31:55 +0000 Subject: [PATCH] Fix bug in vm_pageout_page_stats() that always resulted in a full scan of the active queue. This fix is not expected to have any noticeable impact on performance. Noticed by: Rik van Riel --- sys/vm/vm_pageout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 9c09a8bf9c58..16271180333a 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -1168,6 +1168,8 @@ vm_pageout_page_stats() tpcount = (vm_pageout_stats_max * cnt.v_active_count) / cnt.v_page_count; if (pcount > tpcount) pcount = tpcount; + } else { + fullintervalcount = 0; } m = TAILQ_FIRST(&vm_page_queues[PQ_ACTIVE].pl);