mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
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:
committed by
Brian Behlendorf
parent
888f7141a3
commit
0b75bdb369
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user