summaryrefslogtreecommitdiffstats
path: root/fs/orangefs/dcache.c
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-07-25 13:58:24 -0400
committerMartin Brandenburg <martin@omnibond.com>2016-08-02 15:38:46 -0400
commit4cd8f319441a323280eaa0acf390ffb18c64d86b (patch)
treeb64d935d9222a34a55d09d6363823bb50466e636 /fs/orangefs/dcache.c
parent71680c18c8f22deafbaaf76d1c2d0eed2899a3d2 (diff)
downloadlinux-4cd8f319441a323280eaa0acf390ffb18c64d86b.tar.bz2
orangefs: Allow dcache and getattr cache time to be configured.
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 dcb55bbb0b69..2521af6707f7 100644
--- a/fs/orangefs/dcache.c
+++ b/fs/orangefs/dcache.c
@@ -73,7 +73,7 @@ static int orangefs_revalidate_lookup(struct dentry *dentry)
}
}
- dentry->d_time = jiffies + HZ;
+ dentry->d_time = jiffies + dcache_timeout_msecs*HZ/1000;
ret = 1;
out_release_op:
op_release(new_op);