Module Name:    src
Committed By:   ad
Date:           Thu Mar 19 20:23:20 UTC 2020

Modified Files:
        src/sys/uvm: uvm_meter.c

Log Message:
sysctl_vm_uvmexp2(): some counters were needlessly truncated.


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/uvm/uvm_meter.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_meter.c
diff -u src/sys/uvm/uvm_meter.c:1.74 src/sys/uvm/uvm_meter.c:1.75
--- src/sys/uvm/uvm_meter.c:1.74	Wed Jan 15 17:55:45 2020
+++ src/sys/uvm/uvm_meter.c	Thu Mar 19 20:23:19 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_meter.c,v 1.74 2020/01/15 17:55:45 ad Exp $	*/
+/*	$NetBSD: uvm_meter.c,v 1.75 2020/03/19 20:23:19 ad Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_meter.c,v 1.74 2020/01/15 17:55:45 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_meter.c,v 1.75 2020/03/19 20:23:19 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -180,12 +180,12 @@ sysctl_vm_uvmexp2(SYSCTLFN_ARGS)
 	u.poolpages = pool_totalpages();
 	u.countsyncone = cpu_count_get(CPU_COUNT_SYNC_ONE);
 	u.countsyncall = cpu_count_get(CPU_COUNT_SYNC_ALL);
-	u.anonunknown = (int)cpu_count_get(CPU_COUNT_ANONUNKNOWN);
-	u.anonclean = (int)cpu_count_get(CPU_COUNT_ANONCLEAN);
-	u.anondirty = (int)cpu_count_get(CPU_COUNT_ANONDIRTY);
-	u.fileunknown = (int)cpu_count_get(CPU_COUNT_FILEUNKNOWN);
-	u.fileclean = (int)cpu_count_get(CPU_COUNT_FILECLEAN);
-	u.filedirty = (int)cpu_count_get(CPU_COUNT_FILEDIRTY);
+	u.anonunknown = cpu_count_get(CPU_COUNT_ANONUNKNOWN);
+	u.anonclean = cpu_count_get(CPU_COUNT_ANONCLEAN);
+	u.anondirty = cpu_count_get(CPU_COUNT_ANONDIRTY);
+	u.fileunknown = cpu_count_get(CPU_COUNT_FILEUNKNOWN);
+	u.fileclean = cpu_count_get(CPU_COUNT_FILECLEAN);
+	u.filedirty = cpu_count_get(CPU_COUNT_FILEDIRTY);
 
 	node = *rnode;
 	node.sysctl_data = &u;

Reply via email to