Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm sysctl_vm_uvmexp2(): some counters were needlessly t...
details: https://anonhg.NetBSD.org/src/rev/20dc3fc04c21
branches: trunk
changeset: 1008334:20dc3fc04c21
user: ad <ad%NetBSD.org@localhost>
date: Thu Mar 19 20:23:19 2020 +0000
description:
sysctl_vm_uvmexp2(): some counters were needlessly truncated.
diffstat:
sys/uvm/uvm_meter.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (37 lines):
diff -r d32d2fee5f97 -r 20dc3fc04c21 sys/uvm/uvm_meter.c
--- a/sys/uvm/uvm_meter.c Thu Mar 19 20:10:49 2020 +0000
+++ b/sys/uvm/uvm_meter.c Thu Mar 19 20:23:19 2020 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index