diff options
author | Ned Bass <[email protected]> | 2014-02-27 16:11:11 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-03-04 12:22:24 -0800 |
commit | 3d920a1567d550273413a741c5fbece42cea6f00 (patch) | |
tree | 5fa36a5666628ad0790421557971b837cb47d07b /module/zfs/dsl_dir.c | |
parent | cecb7487fc8eea3508c3b67810ba5f0e2a265ba1 (diff) |
dmu_tx kstat cleanup
A few counters in the dmu_tx kstats are obsolete or no longer
bumped properly.
- The sync task restructuring commit
13fe019870c8779bf2f5b3ff731b512cf89133ef removed the code
that bumpted dmu_tx_quota. The counter is now bumped in two
cases, instead of just the one case as before (after the result
of dsl_dataset_check_quota call). The second case is where
we check the requested reservation against the actual pool size,
as this is an implicit quota of sorts.
- The write throttle restructuring commit
e8b96c6007bf97cdf34869c1ffbd0ce753873a3d makes dmu_tx_how and
dmu_tx_inflight obsolete, so they are removed.
Signed-off-by: Kohsuke Kawaguchi <[email protected]>
Signed-off-by: Ned Bass <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #1914
Diffstat (limited to 'module/zfs/dsl_dir.c')
-rw-r--r-- | module/zfs/dsl_dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/dsl_dir.c b/module/zfs/dsl_dir.c index f649bba4c..fb7cd2cd6 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)); } |