summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 97e8f34)
raw | patch | inline | side by side (parent: 97e8f34)
author | hume-github <hume-ml+github@bofh.ca> | |
Tue, 18 Sep 2012 18:12:25 +0000 (15:12 -0300) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 23 Sep 2012 10:15:12 +0000 (12:15 +0200) |
src/zfs_arc.c | patch | blob | history |
diff --git a/src/zfs_arc.c b/src/zfs_arc.c
index 5f14e90981adda089fb2b94cd85b5094a4e451b2..79a234f415be17d727336c3de7f64b90b40a6cde 100644 (file)
--- a/src/zfs_arc.c
+++ b/src/zfs_arc.c
/*
* Global variables
*/
-static kstat_t *ksp;
+
extern kstat_ctl_t *kc;
static void za_submit (const char* type, const char* type_instance, value_t* values, int values_len)
counter_t demand_data_hits, demand_metadata_hits, prefetch_data_hits, prefetch_metadata_hits;
counter_t demand_data_misses, demand_metadata_misses, prefetch_data_misses, prefetch_metadata_misses;
counter_t l2_read_bytes, l2_write_bytes;
+ kstat_t *ksp = NULL;
get_kstat (&ksp, "zfs", 0, "arcstats");
if (ksp == NULL)
static int za_init (void) /* {{{ */
{
- ksp = NULL;
-
/* kstats chain already opened by update_kstat (using *kc), verify everything went fine. */
if (kc == NULL)
{