aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libspl/include
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2013-09-30 11:51:20 -0700
committerBrian Behlendorf <[email protected]>2013-10-25 13:57:25 -0700
commit76463d4026e0fa4b3d7b96acd58cb5fb79c49af7 (patch)
treea502a8ad3e23a9801262a13285083091c7685075 /lib/libspl/include
parent98ab38d1096079d82247350f526f0d7268956fb5 (diff)
Revert "Add txgs-<pool> kstat file"
This reverts commit e95853a331529a6cb96fdf10476c53441e59f4e1.
Diffstat (limited to 'lib/libspl/include')
-rw-r--r--lib/libspl/include/sys/kstat.h27
1 files changed, 1 insertions, 26 deletions
diff --git a/lib/libspl/include/sys/kstat.h b/lib/libspl/include/sys/kstat.h
index 6bd2ec878..fcd3ed98b 100644
--- a/lib/libspl/include/sys/kstat.h
+++ b/lib/libspl/include/sys/kstat.h
@@ -228,10 +228,8 @@ typedef struct kstat32 {
/* ks_ndata == 1 */
#define KSTAT_TYPE_TIMER 4 /* event timer */
/* ks_ndata >= 1 */
-#define KSTAT_TYPE_TXG 5 /* txg statistics */
- /* ks_ndata >= 0 */
-#define KSTAT_NUM_TYPES 6
+#define KSTAT_NUM_TYPES 5
/*
* kstat class
@@ -700,29 +698,6 @@ typedef struct kstat_timer {
#define KSTAT_TIMER_PTR(kptr) ((kstat_timer_t *)(kptr)->ks_data)
-/*
- * TXG statistics - bytes read/written and iops performed
- */
-typedef enum kstat_txg_state {
- TXG_STATE_OPEN = 1,
- TXG_STATE_QUIESCING = 2,
- TXG_STATE_SYNCING = 3,
- TXG_STATE_COMMITTED = 4,
-} kstat_txg_state_t;
-
-typedef struct kstat_txg {
- u_longlong_t txg; /* txg id */
- kstat_txg_state_t state; /* txg state */
- hrtime_t birth; /* birth time stamp */
- u_longlong_t nread; /* number of bytes read */
- u_longlong_t nwritten; /* number of bytes written */
- uint_t reads; /* number of read operations */
- uint_t writes; /* number of write operations */
- hrtime_t open_time; /* open time */
- hrtime_t quiesce_time; /* quiesce time */
- hrtime_t sync_time; /* sync time */
-} kstat_txg_t;
-
#if defined(_KERNEL)
#include <sys/t_lock.h>