summaryrefslogtreecommitdiffstats
path: root/zfs/ZfsArcMeter.h
diff options
context:
space:
mode:
authorRoss Williams <ross@ross-williams.net>2019-09-03 18:21:33 +0000
committerRoss Williams <ross@ross-williams.net>2019-09-03 18:21:33 +0000
commite450b586368750e771746ef3e2f5a070962dfd28 (patch)
tree5501777912872ee233b6c9b60a26dd4906a6b4a7 /zfs/ZfsArcMeter.h
parentff6914e4ad4b78749bcee5471a33ef206b0a7d03 (diff)
Refactor openzfs_sysctl_init() and ZfsArcMeter...
openzfs_sysctl_init() now returns void instead of int. The ZfsArcStats->enabled flag is set inside the init function now, instead of having to be set from its return value. Preparation for more flag setting in Compressed ARC commit. ZfsArcMeter_readStats() added and all Meter->values[] setting moved to it, eliminating duplicated code in {darwin,freebsd,linux,solaris}/Platform.c.
Diffstat (limited to 'zfs/ZfsArcMeter.h')
-rw-r--r--zfs/ZfsArcMeter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/zfs/ZfsArcMeter.h b/zfs/ZfsArcMeter.h
index b89be223..c52083df 100644
--- a/zfs/ZfsArcMeter.h
+++ b/zfs/ZfsArcMeter.h
@@ -9,10 +9,14 @@ Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
+#include "ZfsArcStats.h"
+
#include "Meter.h"
extern int ZfsArcMeter_attributes[];
+void ZfsArcMeter_readStats(Meter* this, ZfsArcStats* stats);
+
extern MeterClass ZfsArcMeter_class;
#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy