diff options
Diffstat (limited to 'fs/nfs/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index ff167aa62434..ed7024c34885 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c | |||
@@ -1797,7 +1797,8 @@ static int nfs_access_get_cached(struct inode *inode, struct rpc_cred *cred, str | |||
1797 | cache = nfs_access_search_rbtree(inode, cred); | 1797 | cache = nfs_access_search_rbtree(inode, cred); |
1798 | if (cache == NULL) | 1798 | if (cache == NULL) |
1799 | goto out; | 1799 | goto out; |
1800 | if (!time_in_range(jiffies, cache->jiffies, cache->jiffies + nfsi->attrtimeo)) | 1800 | if (!nfs_have_delegation(inode, FMODE_READ) && |
1801 | !time_in_range(jiffies, cache->jiffies, cache->jiffies + nfsi->attrtimeo)) | ||
1801 | goto out_stale; | 1802 | goto out_stale; |
1802 | res->jiffies = cache->jiffies; | 1803 | res->jiffies = cache->jiffies; |
1803 | res->cred = cache->cred; | 1804 | res->cred = cache->cred; |