summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pageout.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-07-08 03:22:55 +0000
committerdyson <dyson@FreeBSD.org>1996-07-08 03:22:55 +0000
commit824afef0c4ffcf3871a0091dfb4fb8af21888b56 (patch)
tree1cf83ed983980bfba60ba794c2e0f6429e472388 /sys/vm/vm_pageout.c
parentf0e4f8d97a258629a0c3655eb527066fb052759a (diff)
downloadFreeBSD-src-824afef0c4ffcf3871a0091dfb4fb8af21888b56.zip
FreeBSD-src-824afef0c4ffcf3871a0091dfb4fb8af21888b56.tar.gz
Back-off on the previous commit, specifically remove the look-ahead
optimization on the active queue scan. I will do this correctly later.
Diffstat (limited to 'sys/vm/vm_pageout.c')
-rw-r--r--sys/vm/vm_pageout.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index 6a13ec8..98ad6ef 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.80 1996/06/29 09:15:39 davidg Exp $
+ * $Id: vm_pageout.c,v 1.81 1996/07/08 02:25:53 dyson Exp $
*/
/*
@@ -564,7 +564,7 @@ vm_pageout_map_deactivate_pages(map, desired)
static int
vm_pageout_scan()
{
- vm_page_t m, next, nextnext;
+ vm_page_t m, next;
int page_shortage, addl_page_shortage, maxscan, maxlaunder, pcount;
int pages_freed;
struct proc *p, *bigproc;
@@ -755,22 +755,14 @@ rescan0:
pcount = cnt.v_active_count;
m = TAILQ_FIRST(&vm_page_queue_active);
- nextnext = NULL;
while ((m != NULL) && (pcount-- > 0) && (page_shortage > 0)) {
int refcount;
if (m->queue != PQ_ACTIVE) {
- m = nextnext;
- if ((m == NULL) || (m->queue != PQ_ACTIVE))
- break;
+ break;
}
next = TAILQ_NEXT(m, pageq);
- if (next)
- nextnext = TAILQ_NEXT(next, pageq);
- else
- nextnext = NULL;
-
/*
* Don't deactivate pages that are busy.
*/
OpenPOWER on IntegriCloud