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 <tuxoko@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2142
This commit is contained in:
Chunwei Chen
2014-02-25 17:32:21 +08:00
committed by Brian Behlendorf
parent 888f7141a3
commit 0b75bdb369
6 changed files with 22 additions and 10 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ typedef const struct vdev_ops {
struct vdev_cache_entry {
char *ve_data;
uint64_t ve_offset;
uint64_t ve_lastused;
clock_t ve_lastused;
avl_node_t ve_offset_node;
avl_node_t ve_lastused_node;
uint32_t ve_hits;