From fdb9c7fdd5bbcc62b53508ced9b2203edb27acca Mon Sep 17 00:00:00 2001 From: kjenova Date: Fri, 30 May 2014 11:42:44 +0200 Subject: [PATCH] Convert to a time_after() expression. --- drivers/md/dm-thin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index 2e71de8e0048c9..aa45935083b143 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -17,6 +17,7 @@ #include #include #include +#include #define DM_MSG_PREFIX "thin" @@ -1375,8 +1376,7 @@ static void process_bio_fail(struct thin_c *tc, struct bio *bio) */ static int need_commit_due_to_time(struct pool *pool) { - return jiffies < pool->last_commit_jiffies || - jiffies > pool->last_commit_jiffies + COMMIT_PERIOD; + return time_after(jiffies, pool->last_commit_jiffies + COMMIT_PERIOD); } #define thin_pbd(node) rb_entry((node), struct dm_thin_endio_hook, rb_node)