projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ec2ef5
)
NFSv4: Remove redundant check for FMODE_EXEC in nfs_finish_open
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Wed, 29 May 2013 15:53:29 +0000
(11:53 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Thu, 6 Jun 2013 20:24:41 +0000
(16:24 -0400)
We already check the EXEC access mode in the lower layers.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c
patch
|
blob
|
history
diff --git
a/fs/nfs/dir.c
b/fs/nfs/dir.c
index
e093e73
..
bf4e5f4
100644
(file)
--- a/
fs/nfs/dir.c
+++ b/
fs/nfs/dir.c
@@
-1362,13
+1362,6
@@
static int nfs_finish_open(struct nfs_open_context *ctx,
ctx->dentry = dget(dentry);
}
- /* If the open_intent is for execute, we have an extra check to make */
- if (ctx->mode & FMODE_EXEC) {
- err = nfs_may_open(dentry->d_inode, ctx->cred, open_flags);
- if (err < 0)
- goto out;
- }
-
err = finish_open(file, dentry, do_open, opened);
if (err)
goto out;