summaryrefslogtreecommitdiff
path: root/fs/orangefs/dcache.c
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-07-28 14:46:36 -0400
committerMartin Brandenburg <martin@omnibond.com>2016-08-02 15:39:13 -0400
commit8bbb20a863ca72dfb9025a4653f21b5abf926d20 (patch)
treed4fd9ecb8da7f69ca9e474e003cb2896808121ef /fs/orangefs/dcache.c
parent957ee43718c5a226fa70ef5e680d037ca9156af6 (diff)
downloadlwn-8bbb20a863ca72dfb9025a4653f21b5abf926d20.tar.gz
lwn-8bbb20a863ca72dfb9025a4653f21b5abf926d20.zip
orangefs: Account for jiffies wraparound.
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Diffstat (limited to 'fs/orangefs/dcache.c')
-rw-r--r--fs/orangefs/dcache.c2
1 files changed, 1 insertions, 1 deletions
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)