summaryrefslogtreecommitdiffstats
path: root/fs/orangefs/orangefs-utils.c
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-07-25 19:58:24 +0200
committerMartin Brandenburg <martin@omnibond.com>2016-08-02 21:38:46 +0200
commit4cd8f319441a323280eaa0acf390ffb18c64d86b (patch)
treeb64d935d9222a34a55d09d6363823bb50466e636 /fs/orangefs/orangefs-utils.c
parentorangefs: Cache getattr results. (diff)
downloadlinux-4cd8f319441a323280eaa0acf390ffb18c64d86b.tar.xz
linux-4cd8f319441a323280eaa0acf390ffb18c64d86b.zip
orangefs: Allow dcache and getattr cache time to be configured.
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-utils.c')
-rw-r--r--fs/orangefs/orangefs-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/orangefs/orangefs-utils.c b/fs/orangefs/orangefs-utils.c
index 69b4d8af8d81..cd512a3a9c52 100644
--- a/fs/orangefs/orangefs-utils.c
+++ b/fs/orangefs/orangefs-utils.c
@@ -347,7 +347,7 @@ int orangefs_inode_getattr(struct inode *inode, int new, int bypass)
inode->i_mode = type | (is_root_handle(inode) ? S_ISVTX : 0) |
orangefs_inode_perms(&new_op->downcall.resp.getattr.attributes);
- orangefs_inode->getattr_time = jiffies + HZ;
+ orangefs_inode->getattr_time = jiffies + getattr_timeout_msecs*HZ/1000;
ret = 0;
out:
op_release(new_op);