diff options
| author | NeilBrown <neil@brown.name> | 2026-07-17 19:27:57 +1000 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-08-26 16:40:25 -0400 |
| commit | 3c34beb9b5eb490a4b433ba2db0693afcbcb5d90 (patch) | |
| tree | 29cdc92a867bc7d27014ed5e20c7046be4e23b6b /scripts/Makefile.thinlto | |
| parent | 02c05256402e2a88f16839e3a13bc8cb7ff9170c (diff) | |
| download | linux-next-3c34beb9b5eb490a4b433ba2db0693afcbcb5d90.tar.gz linux-next-3c34beb9b5eb490a4b433ba2db0693afcbcb5d90.zip | |
nfsd: nfsd4_create_file(): Move NFSD_MAY_CREATE check earlier
We only need NFS_MAY_CREATE check if the file doesn't exist, but it is
nfsd-specific code as it needs to check NFSEXP_READONLY and I want that
to be separate from vfs-specific code, which eventually all be provided
by the VFS.
So move that check earlier, but hold the error status until needed.
The if/else chain here looks a bit clumsy, but it will make a later
patch cleaner.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://patch.msgid.link/20260717093001.1972119-10-neilb@ownmail.net
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
