From 14286e5e8f916152f9360663f3373fdf1a6fbc4e Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 25 Feb 1999 06:00:52 +0000 Subject: [PATCH] Reviewed by: Matthew Dillon Corrected the computation of cnt.v_ozfod in vm_fault: vm_fault was counting the number of unoptimized rather than optimized zero-fill faults. --- sys/vm/vm_fault.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index d453f7f48cc..047f10f6cbe 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -66,7 +66,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_fault.c,v 1.99 1999/02/07 21:48:21 dillon Exp $ + * $Id: vm_fault.c,v 1.100 1999/02/17 09:08:29 dillon Exp $ */ /* @@ -554,8 +554,9 @@ readrest: if ((fs.m->flags & PG_ZERO) == 0) { vm_page_zero_fill(fs.m); - cnt.v_ozfod++; } + else + cnt.v_ozfod++; cnt.v_zfod++; break; /* break to PAGE HAS BEEN FOUND */ } else {