Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210672
b: refs/heads/master
c: fbf3fdd
h: refs/heads/master
v: v3
  • Loading branch information
Menyhart Zoltan authored and Trond Myklebust committed Sep 12, 2010
1 parent 46a2ed1 commit 5a0a0e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b20d37ca9561711c6a3c4b859c2855f49565e061
refs/heads/master: fbf3fdd2443965d9ba6fb4b5fecd1f6e0847218f
8 changes: 8 additions & 0 deletions trunk/fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,15 @@ static int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
goto out_err;

error = server->nfs_client->rpc_ops->statfs(server, fh, &res);
if (unlikely(error == -ESTALE)) {
struct dentry *pd_dentry;

pd_dentry = dget_parent(dentry);
if (pd_dentry != NULL) {
nfs_zap_caches(pd_dentry->d_inode);
dput(pd_dentry);
}
}
nfs_free_fattr(res.fattr);
if (error < 0)
goto out_err;
Expand Down

0 comments on commit 5a0a0e7

Please sign in to comment.