Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132303
b: refs/heads/master
c: a71ee33
h: refs/heads/master
i:
  132301: bc33759
  132299: 639edb7
  132295: 36bc08c
  132287: b7d0de1
v: v3
  • Loading branch information
Suresh Jayaraman authored and Trond Myklebust committed Mar 11, 2009
1 parent e2c423b commit 7c1807f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57df675c60c5cf0748ddba9c7f85afde1530d74d
refs/heads/master: a71ee337b31271e701f689d544b6153b75609bc5
8 changes: 7 additions & 1 deletion trunk/fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1892,8 +1892,14 @@ static int nfs_do_access(struct inode *inode, struct rpc_cred *cred, int mask)
cache.cred = cred;
cache.jiffies = jiffies;
status = NFS_PROTO(inode)->access(inode, &cache);
if (status != 0)
if (status != 0) {
if (status == -ESTALE) {
nfs_zap_caches(inode);
if (!S_ISDIR(inode->i_mode))
set_bit(NFS_INO_STALE, &NFS_I(inode)->flags);
}
return status;
}
nfs_access_add_cache(inode, &cache);
out:
if ((mask & ~cache.mask & (MAY_READ | MAY_WRITE | MAY_EXEC)) == 0)
Expand Down

0 comments on commit 7c1807f

Please sign in to comment.