Reviewed by: Matthew Dillon <dillon@apollo.backplane.com>

Corrected the computation of cnt.v_ozfod in vm_fault: vm_fault
was counting the number of unoptimized rather than optimized
zero-fill faults.
This commit is contained in:
Alan Cox 1999-02-25 06:00:52 +00:00
parent 82e5072fcd
commit 14286e5e8f

View File

@ -66,7 +66,7 @@
* any improvements or extensions that they make and grant Carnegie the * any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes. * 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) { if ((fs.m->flags & PG_ZERO) == 0) {
vm_page_zero_fill(fs.m); vm_page_zero_fill(fs.m);
cnt.v_ozfod++;
} }
else
cnt.v_ozfod++;
cnt.v_zfod++; cnt.v_zfod++;
break; /* break to PAGE HAS BEEN FOUND */ break; /* break to PAGE HAS BEEN FOUND */
} else { } else {