X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fzfs_arc.c;h=8261282a825e1fc5ea13dea2bfacf222a35b4037;hb=43954e07f30d05b2da8319749400c9bf4d01c23c;hp=c5493d83a60b01ddef68e52eba84c6805106f25d;hpb=063a5e75b36173e89ffa18d32d47509f6ef968ec;p=collectd.git diff --git a/src/zfs_arc.c b/src/zfs_arc.c index c5493d83..8261282a 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -90,12 +90,10 @@ static long long get_zfs_value(kstat_t *ksp, const char *key) static void free_zfs_values (kstat_t *ksp) { - llentry_t *e; - if (ksp == NULL) return; - for (e = llist_head (ksp); e != NULL; e = e->next) + for (llentry_t *e = llist_head (ksp); e != NULL; e = e->next) { sfree (e->key); sfree (e->value); @@ -296,10 +294,6 @@ static int za_read (void) za_read_derive (ksp, "deleted", "cache_operation", "deleted"); #if defined(KERNEL_FREEBSD) za_read_derive (ksp, "allocated","cache_operation", "allocated"); -#if __FreeBSD_version < 1002501 - /* stolen removed from sysctl kstat.zfs.misc.arcstats on FreeBSD 10.2+ */ - za_read_derive (ksp, "stolen", "cache_operation", "stolen"); -#endif #endif /* Issue indicators */