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:
alc 1999-02-25 06:00:52 +00:00
parent 25079ce905
commit 11ba367bdf

View File

@ -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 {