summaryrefslogtreecommitdiffstats
path: root/module/zfs/txg.c
diff options
context:
space:
mode:
authorChunwei Chen <[email protected]>2014-02-25 17:32:21 +0800
committerBrian Behlendorf <[email protected]>2014-04-14 13:27:56 -0700
commit0b75bdb369df4e0dab96b2778a6421773268df21 (patch)
tree2b8184592909819f2657e96f6090b9410c76be64 /module/zfs/txg.c
parent888f7141a3fcb73e2ec254de7628eee12022c4fc (diff)
Use ddi_time_after and friends to compare time
Also, make sure we use clock_t for ddi_get_lbolt to prevent type conversion from screwing things. Signed-off-by: Chunwei Chen <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2142
Diffstat (limited to 'module/zfs/txg.c')
-rw-r--r--module/zfs/txg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/txg.c b/module/zfs/txg.c
index 524fe8e84..ff25c9c1b 100644
--- a/module/zfs/txg.c
+++ b/module/zfs/txg.c
@@ -480,7 +480,7 @@ txg_sync_thread(dsl_pool_t *dp)
tx_state_t *tx = &dp->dp_tx;
callb_cpr_t cpr;
vdev_stat_t *vs1, *vs2;
- uint64_t start, delta;
+ clock_t start, delta;
#ifdef _KERNEL
/*
@@ -498,7 +498,7 @@ txg_sync_thread(dsl_pool_t *dp)
start = delta = 0;
for (;;) {
- uint64_t timer, timeout;
+ clock_t timer, timeout;
uint64_t txg;
uint64_t ndirty;