aboutsummaryrefslogtreecommitdiffstats
path: root/fs/orangefs/namei.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/namei.c
parent71680c18c8f22deafbaaf76d1c2d0eed2899a3d2 (diff)
orangefs: Allow dcache and getattr cache time to be configured.
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Diffstat (limited to 'fs/orangefs/namei.c')
-rw-r--r--fs/orangefs/namei.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/orangefs/namei.c b/fs/orangefs/namei.c
index dde6c36f5a69..77071b78816a 100644
--- a/fs/orangefs/namei.c
+++ b/fs/orangefs/namei.c
@@ -72,7 +72,7 @@ static int orangefs_create(struct inode *dir,
72 72
73 d_instantiate(dentry, inode); 73 d_instantiate(dentry, inode);
74 unlock_new_inode(inode); 74 unlock_new_inode(inode);
75 dentry->d_time = jiffies + HZ; 75 dentry->d_time = jiffies + dcache_timeout_msecs*HZ/1000;
76 ORANGEFS_I(inode)->getattr_time = 0; 76 ORANGEFS_I(inode)->getattr_time = 0;
77 77
78 gossip_debug(GOSSIP_NAME_DEBUG, 78 gossip_debug(GOSSIP_NAME_DEBUG,
@@ -183,7 +183,7 @@ static struct dentry *orangefs_lookup(struct inode *dir, struct dentry *dentry,
183 goto out; 183 goto out;
184 } 184 }
185 185
186 dentry->d_time = jiffies + HZ; 186 dentry->d_time = jiffies + dcache_timeout_msecs*HZ/1000;
187 187
188 inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn); 188 inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn);
189 if (IS_ERR(inode)) { 189 if (IS_ERR(inode)) {
@@ -322,7 +322,7 @@ static int orangefs_symlink(struct inode *dir,
322 322
323 d_instantiate(dentry, inode); 323 d_instantiate(dentry, inode);
324 unlock_new_inode(inode); 324 unlock_new_inode(inode);
325 dentry->d_time = jiffies + HZ; 325 dentry->d_time = jiffies + dcache_timeout_msecs*HZ/1000;
326 ORANGEFS_I(inode)->getattr_time = 0; 326 ORANGEFS_I(inode)->getattr_time = 0;
327 327
328 gossip_debug(GOSSIP_NAME_DEBUG, 328 gossip_debug(GOSSIP_NAME_DEBUG,
@@ -386,7 +386,7 @@ static int orangefs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode
386 386
387 d_instantiate(dentry, inode); 387 d_instantiate(dentry, inode);
388 unlock_new_inode(inode); 388 unlock_new_inode(inode);
389 dentry->d_time = jiffies + HZ; 389 dentry->d_time = jiffies + dcache_timeout_msecs*HZ/1000;
390 ORANGEFS_I(inode)->getattr_time = 0; 390 ORANGEFS_I(inode)->getattr_time = 0;
391 391
392 gossip_debug(GOSSIP_NAME_DEBUG, 392 gossip_debug(GOSSIP_NAME_DEBUG,