summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4cfc5b7)
raw | patch | inline | side by side (parent: 4cfc5b7)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Mon, 29 Feb 2016 21:16:49 +0000 (22:16 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Mon, 29 Feb 2016 21:16:49 +0000 (22:16 +0100) |
Patch taken from FreeBSD port
src/zfs_arc.c | patch | blob | history |
diff --git a/src/zfs_arc.c b/src/zfs_arc.c
index 3a54ad8d57d92c97a6ef9b2050c8b68e02fef682..65a50b4e0986b6fc92a123b1dedeaf2cf0484f2c 100644 (file)
--- a/src/zfs_arc.c
+++ b/src/zfs_arc.c
za_read_derive (ksp, "deleted", "cache_operation", "deleted");
#if __FreeBSD__
za_read_derive (ksp, "allocated","cache_operation", "allocated");
+#if defined(__FreeBSD_version) && (__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 */