diff options
author | Martin Brandenburg <martin@omnibond.com> | 2016-07-25 20:58:24 +0300 |
---|---|---|
committer | Martin Brandenburg <martin@omnibond.com> | 2016-08-02 22:38:46 +0300 |
commit | 4cd8f319441a323280eaa0acf390ffb18c64d86b (patch) | |
tree | b64d935d9222a34a55d09d6363823bb50466e636 /fs/orangefs/orangefs-utils.c | |
parent | 71680c18c8f22deafbaaf76d1c2d0eed2899a3d2 (diff) | |
download | linux-4cd8f319441a323280eaa0acf390ffb18c64d86b.tar.xz |
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.c | 2 |
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); |