From 8b4dd3c47338a9f7bc61164944b92cbb422c2bc5 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Wed, 11 Jan 1995 20:19:20 +0000 Subject: [PATCH] Improve my previous change to use the same tests as are used in qcollapse. --- sys/vm/vm_object.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 15f30933eea9..89967e83242b 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -61,7 +61,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_object.c,v 1.15 1995/01/09 16:05:49 davidg Exp $ + * $Id: vm_object.c,v 1.16 1995/01/11 20:00:09 davidg Exp $ */ /* @@ -1172,7 +1172,8 @@ again: next = p->listq.tqe_next; - if ((p->flags & PG_BUSY) || p->busy || p->bmapped) { + if ((p->flags & (PG_BUSY | PG_FICTITIOUS | PG_CACHE)) || + !p->valid || p->hold_count || p->wire_count || p->busy || p->bmapped) { p = next; continue; }