projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f28dc3
)
NFSv4: Ignore NFS_INO_REVAL_FORCED in nfs4_proc_access
author
Trond Myklebust
<trond.myklebust@hammerspace.com>
Mon, 4 Jun 2018 19:00:53 +0000
(15:00 -0400)
committer
Trond Myklebust
<trond.myklebust@hammerspace.com>
Mon, 4 Jun 2018 19:03:20 +0000
(15:03 -0400)
If we hold a delegation, we don't need to care about whether or not
the inode attributes are up to date. We know we can cache the results
of this call regardless.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4proc.c
b/fs/nfs/nfs4proc.c
index 544cdcb79b4fa60f9a61a7f2296e895737b2df53..f413d0c8c8371d4220219ac7c87fb4cec2e17b8f 100644
(file)
--- a/
fs/nfs/nfs4proc.c
+++ b/
fs/nfs/nfs4proc.c
@@
-4114,7
+4114,7
@@
static int _nfs4_proc_access(struct inode *inode, struct nfs_access_entry *entry
};
int status = 0;
- if (!nfs
_have_delegated_attributes(inode
)) {
+ if (!nfs
4_have_delegation(inode, FMODE_READ
)) {
res.fattr = nfs_alloc_fattr();
if (res.fattr == NULL)
return -ENOMEM;