diff options
author | Martin Brandenburg <martin@omnibond.com> | 2016-02-08 23:01:29 +0100 |
---|---|---|
committer | Martin Brandenburg <martin@omnibond.com> | 2016-08-02 21:38:21 +0200 |
commit | 31b7c1ab4ed14d3aeb658e11a114860a64290fea (patch) | |
tree | 3a5a9575a51456d414d70ec800df567544c55aea /fs/orangefs/namei.c | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s39... (diff) | |
download | linux-31b7c1ab4ed14d3aeb658e11a114860a64290fea.tar.xz linux-31b7c1ab4ed14d3aeb658e11a114860a64290fea.zip |
orangefs: Use d_time to avoid excessive lookups
Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Diffstat (limited to 'fs/orangefs/namei.c')
-rw-r--r-- | fs/orangefs/namei.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/orangefs/namei.c b/fs/orangefs/namei.c index 7e8dfa97c44a..b37f80bf0bec 100644 --- a/fs/orangefs/namei.c +++ b/fs/orangefs/namei.c @@ -72,6 +72,7 @@ static int orangefs_create(struct inode *dir, d_instantiate(dentry, inode); unlock_new_inode(inode); + dentry->d_time = jiffies + HZ; gossip_debug(GOSSIP_NAME_DEBUG, "%s: dentry instantiated for %s\n", @@ -181,6 +182,8 @@ static struct dentry *orangefs_lookup(struct inode *dir, struct dentry *dentry, goto out; } + dentry->d_time = jiffies + HZ; + inode = orangefs_iget(dir->i_sb, &new_op->downcall.resp.lookup.refn); if (IS_ERR(inode)) { gossip_debug(GOSSIP_NAME_DEBUG, @@ -316,6 +319,7 @@ static int orangefs_symlink(struct inode *dir, d_instantiate(dentry, inode); unlock_new_inode(inode); + dentry->d_time = jiffies + HZ; gossip_debug(GOSSIP_NAME_DEBUG, "Inode (Symlink) %pU -> %s\n", @@ -378,6 +382,7 @@ static int orangefs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode d_instantiate(dentry, inode); unlock_new_inode(inode); + dentry->d_time = jiffies + HZ; gossip_debug(GOSSIP_NAME_DEBUG, "Inode (Directory) %pU -> %s\n", |