提交 1a1a29fa 编写于 作者: T Trond Myklebust

NFSv4: Remove redundant check for FMODE_EXEC in nfs_finish_open

We already check the EXEC access mode in the lower layers.
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 9ec2ef53
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册