From 62a68b5f4e919793a339e83f6926375c7c31ba4e Mon Sep 17 00:00:00 2001 From: dyson Date: Fri, 21 Apr 1995 02:48:40 +0000 Subject: Fixed a problem in _vm_object_page_clean that could cause an infinite loop. --- sys/vm/vm_object.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sys/vm') diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index f145515..036a5ee 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.42 1995/04/16 03:11:28 davidg Exp $ + * $Id: vm_object.c,v 1.43 1995/04/16 12:56:19 davidg Exp $ */ /* @@ -529,9 +529,11 @@ startover: if ((p->valid & p->dirty) != 0) { vm_offset_t tincr; tincr = vm_pageout_clean(p, VM_PAGEOUT_FORCE); - pgcount -= (tincr - 1); - tincr *= PAGE_SIZE; - tstart += tincr - PAGE_SIZE; + if( tincr) { + pgcount -= (tincr - 1); + tincr *= PAGE_SIZE; + tstart += tincr - PAGE_SIZE; + } allclean = 0; } } -- cgit v1.1