projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9743120
)
NFS: Remove the NFSv4 "open optimisation" from nfs_permission
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 20 Aug 2013 16:29:27 +0000
(12:29 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 20 Aug 2013 16:29:27 +0000
(12:29 -0400)
Ever since commit
6168f62cb
(Add ACCESS operation to OPEN compound)
the NFSv4 atomic open has primed the access cache, and so nfs_permission
will no longer do an RPC call on the wire.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/dir.c
b/fs/nfs/dir.c
index 39e69d47cd0b042e38510af9e5991a286529071e..5d737bd52288eb9b96e5c89ae50b9c8c819cabad 100644
(file)
--- a/
fs/nfs/dir.c
+++ b/
fs/nfs/dir.c
@@
-2245,11
+2245,6
@@
int nfs_permission(struct inode *inode, int mask)
case S_IFLNK:
goto out;
case S_IFREG:
- /* NFSv4 has atomic_open... */
- if (nfs_server_capable(inode, NFS_CAP_ATOMIC_OPEN)
- && (mask & MAY_OPEN)
- && !(mask & MAY_EXEC))
- goto out;
break;
case S_IFDIR:
/*