diff --git a/include/sys/dmu_tx.h b/include/sys/dmu_tx.h index 59a1474020e2..c70c97da03f2 100644 --- a/include/sys/dmu_tx.h +++ b/include/sys/dmu_tx.h @@ -130,10 +130,8 @@ typedef struct dmu_tx_stats { kstat_named_t dmu_tx_error; kstat_named_t dmu_tx_suspended; kstat_named_t dmu_tx_group; - kstat_named_t dmu_tx_how; kstat_named_t dmu_tx_memory_reserve; kstat_named_t dmu_tx_memory_reclaim; - kstat_named_t dmu_tx_memory_inflight; kstat_named_t dmu_tx_dirty_throttle; kstat_named_t dmu_tx_dirty_delay; kstat_named_t dmu_tx_dirty_over_max; diff --git a/module/zfs/dmu_tx.c b/module/zfs/dmu_tx.c index 3e04793cf3fb..4159ba74094a 100644 --- a/module/zfs/dmu_tx.c +++ b/module/zfs/dmu_tx.c @@ -48,10 +48,8 @@ dmu_tx_stats_t dmu_tx_stats = { { "dmu_tx_error", KSTAT_DATA_UINT64 }, { "dmu_tx_suspended", KSTAT_DATA_UINT64 }, { "dmu_tx_group", KSTAT_DATA_UINT64 }, - { "dmu_tx_how", KSTAT_DATA_UINT64 }, { "dmu_tx_memory_reserve", KSTAT_DATA_UINT64 }, { "dmu_tx_memory_reclaim", KSTAT_DATA_UINT64 }, - { "dmu_tx_memory_inflight", KSTAT_DATA_UINT64 }, { "dmu_tx_dirty_throttle", KSTAT_DATA_UINT64 }, { "dmu_tx_dirty_delay", KSTAT_DATA_UINT64 }, { "dmu_tx_dirty_over_max", KSTAT_DATA_UINT64 }, diff --git a/module/zfs/dsl_dir.c b/module/zfs/dsl_dir.c index f649bba4c880..fb7cd2cd653c 100644 --- a/module/zfs/dsl_dir.c +++ b/module/zfs/dsl_dir.c @@ -635,6 +635,7 @@ dsl_dir_tempreserve_impl(dsl_dir_t *dd, uint64_t asize, boolean_t netfree, asize, est_inflight, &used_on_disk, &ref_rsrv); if (error) { mutex_exit(&dd->dd_lock); + DMU_TX_STAT_BUMP(dmu_tx_quota); return (error); } } @@ -683,6 +684,7 @@ dsl_dir_tempreserve_impl(dsl_dir_t *dd, uint64_t asize, boolean_t netfree, used_on_disk>>10, est_inflight>>10, quota>>10, asize>>10, retval); mutex_exit(&dd->dd_lock); + DMU_TX_STAT_BUMP(dmu_tx_quota); return (SET_ERROR(retval)); }