mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-19 00:00:10 +03:00
timer shim: fix pending_timer_cmp()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
18d81cb0ed
commit
9b31d10b4e
@ -129,7 +129,7 @@ struct pending_timer {
|
|||||||
static inline bool pending_timer_cmp(struct pending_timer a,
|
static inline bool pending_timer_cmp(struct pending_timer a,
|
||||||
struct pending_timer b)
|
struct pending_timer b)
|
||||||
{
|
{
|
||||||
return a.expires < b.expires;
|
return time_after(a.expires, b.expires);
|
||||||
}
|
}
|
||||||
|
|
||||||
static DECLARE_HEAP(struct pending_timer) pending_timers;
|
static DECLARE_HEAP(struct pending_timer) pending_timers;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user