From 8bbb20a863ca72dfb9025a4653f21b5abf926d20 Mon Sep 17 00:00:00 2001 From: Martin Brandenburg Date: Thu, 28 Jul 2016 14:46:36 -0400 Subject: orangefs: Account for jiffies wraparound. Signed-off-by: Martin Brandenburg --- fs/orangefs/dcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/orangefs/dcache.c') diff --git a/fs/orangefs/dcache.c b/fs/orangefs/dcache.c index 2521af6707f7..00235bf644dc 100644 --- a/fs/orangefs/dcache.c +++ b/fs/orangefs/dcache.c @@ -95,7 +95,7 @@ static int orangefs_d_revalidate(struct dentry *dentry, unsigned int flags) { int ret; - if (dentry->d_time > jiffies) + if (time_before(jiffies, dentry->d_time)) return 1; if (flags & LOOKUP_RCU) -- cgit v1.2.3