mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-22 19:37:41 +07:00
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: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
9ec2ef53b9
commit
1a1a29fa84
@ -1362,13 +1362,6 @@ static int nfs_finish_open(struct nfs_open_context *ctx,
|
|||||||
ctx->dentry = dget(dentry);
|
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);
|
err = finish_open(file, dentry, do_open, opened);
|
||||||
if (err)
|
if (err)
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user