aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorAllan Jude <[email protected]>2020-06-05 20:17:02 -0400
committerGitHub <[email protected]>2020-06-05 17:17:02 -0700
commit4547fc4e071ceb1818b3a46c3035b923e06e5390 (patch)
treed5754d84d30f9a1eb63d963e00158a2bdb8a6dbd /include/sys
parent99b281f1ae3833826b4e3cee4126a4ea5e6de987 (diff)
Connect dataset_kstats for FreeBSD
Expand the FreeBSD spl for kstats to support all current types Move the dataset_kstats_t back to zvol_state_t from zfs_state_os_t now that it is common once again ``` kstat.zfs/mypool.dataset.objset-0x10b.nunlinked: 0 kstat.zfs/mypool.dataset.objset-0x10b.nunlinks: 0 kstat.zfs/mypool.dataset.objset-0x10b.nread: 150528 kstat.zfs/mypool.dataset.objset-0x10b.reads: 48 kstat.zfs/mypool.dataset.objset-0x10b.nwritten: 134217728 kstat.zfs/mypool.dataset.objset-0x10b.writes: 1024 kstat.zfs/mypool.dataset.objset-0x10b.dataset_name: mypool/datasetname ``` Reviewed-by: Ryan Moeller <[email protected]> Reviewed by: Sean Eric Fagan <[email protected]> Reviewed-by: Serapheim Dimitropoulos <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Allan Jude <[email protected]> Closes #10386
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/zvol_impl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/zvol_impl.h b/include/sys/zvol_impl.h
index 845eb04bc..36199c311 100644
--- a/include/sys/zvol_impl.h
+++ b/include/sys/zvol_impl.h
@@ -49,6 +49,7 @@ typedef struct zvol_state {
zilog_t *zv_zilog; /* ZIL handle */
zfs_rangelock_t zv_rangelock; /* for range locking */
dnode_t *zv_dn; /* dnode hold */
+ dataset_kstats_t zv_kstat; /* zvol kstats */
list_node_t zv_next; /* next zvol_state_t linkage */
uint64_t zv_hash; /* name hash */
struct hlist_node zv_hlink; /* hash link */