diff --git a/dm-compress/lbd.c b/dm-compress/lbd.c index d268a49..422da99 100644 --- a/dm-compress/lbd.c +++ b/dm-compress/lbd.c @@ -735,7 +735,7 @@ lbdcache_flush(struct work_struct* work) lbd = list_first_entry(&lc->flush_head, struct lbd, flush_list); mutex_lock(&lbd->reflock); BUG_ON(lbd->ref != 1); - if (lbd->flush_jiffies > now) { + if (time_after(lbd->flush_jiffies, now)) { mutex_unlock(&lbd->reflock); break; }