From b0150bfc4bdb333086d2a06ed3d46f11dc1ab2eb Mon Sep 17 00:00:00 2001 From: David Greenman Date: Mon, 14 Nov 1994 02:57:40 +0000 Subject: [PATCH] Set laundry flag when transitioning an inactive page from clean to dirty. This fixes a performance bug where pages would sometimes not be paged out when they could be. Submitted by: John Dyson --- sys/vm/vm_pageout.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 2909c716fd2..151b8582b3e 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.23 1994/10/25 05:35:44 davidg Exp $ + * $Id: vm_pageout.c,v 1.24 1994/11/06 05:07:53 davidg Exp $ */ /* @@ -631,8 +631,10 @@ rescan1: continue; } - if (((m->flags & PG_CLEAN) != 0) && pmap_is_modified(VM_PAGE_TO_PHYS(m))) + if (((m->flags & PG_CLEAN) != 0) && pmap_is_modified(VM_PAGE_TO_PHYS(m))) { m->flags &= ~PG_CLEAN; + m->flags |= PG_LAUNDRY; + } if (((m->flags & PG_REFERENCED) == 0) && pmap_is_referenced(VM_PAGE_TO_PHYS(m))) { m->flags |= PG_REFERENCED;