diff options
Diffstat (limited to 'libbcachefs/clock_types.h')
-rw-r--r-- | libbcachefs/clock_types.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libbcachefs/clock_types.h b/libbcachefs/clock_types.h index 4a02f467..ae068c6d 100644 --- a/libbcachefs/clock_types.h +++ b/libbcachefs/clock_types.h @@ -22,12 +22,14 @@ struct io_timer { /* Amount to buffer up on a percpu counter */ #define IO_CLOCK_PCPU_SECTORS 128 +typedef HEAP(struct io_timer *) io_timer_heap; + struct io_clock { atomic_long_t now; u16 __percpu *pcpu_buf; spinlock_t timer_lock; - DECLARE_HEAP(struct io_timer *, timers); + io_timer_heap timers; }; #endif /* _BCACHE_CLOCK_TYPES_H */ |