summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>1999-02-25 06:00:52 +0000
committeralc <alc@FreeBSD.org>1999-02-25 06:00:52 +0000
commit11ba367bdf6efc79ad90c840f0c84f2c168cec16 (patch)
tree07b4d1091bc3301bd5b03c9c6edc395c6481bddf /sys/vm
parent25079ce9057c396b4b5e9b202d9cdbbcff2aa7bd (diff)
downloadFreeBSD-src-11ba367bdf6efc79ad90c840f0c84f2c168cec16.zip
FreeBSD-src-11ba367bdf6efc79ad90c840f0c84f2c168cec16.tar.gz
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.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_fault.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c
index d453f7f..047f10f 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 {
OpenPOWER on IntegriCloud