diff options
author | NeilBrown <neilb@suse.de> | 2024-07-26 12:21:31 +1000 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-09-20 19:31:03 -0400 |
commit | 9fd45c16f3e3b95b458e049c77f4d7dfef673a52 (patch) | |
tree | 2889fe4f7e370ab02f4d6d825d91eec8819de4fb /fs/nfsd/export.h | |
parent | c55aeef7766cdc52847d03dd1326859c55811a52 (diff) | |
download | linux-9fd45c16f3e3b95b458e049c77f4d7dfef673a52.tar.gz linux-9fd45c16f3e3b95b458e049c77f4d7dfef673a52.tar.bz2 linux-9fd45c16f3e3b95b458e049c77f4d7dfef673a52.zip |
nfsd: Pass 'cred' instead of 'rqstp' to some functions.
nfsd_permission(), exp_rdonly(), nfsd_setuser(), and nfsexp_flags()
only ever need the cred out of rqstp, so pass it explicitly instead of
the whole rqstp.
This makes the interfaces cleaner.
Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/export.h')
-rw-r--r-- | fs/nfsd/export.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/export.h b/fs/nfsd/export.h index cb17f05e3329..3794ae253a70 100644 --- a/fs/nfsd/export.h +++ b/fs/nfsd/export.h @@ -99,7 +99,8 @@ struct svc_expkey { #define EX_NOHIDE(exp) ((exp)->ex_flags & NFSEXP_NOHIDE) #define EX_WGATHER(exp) ((exp)->ex_flags & NFSEXP_GATHERED_WRITES) -int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp); +struct svc_cred; +int nfsexp_flags(struct svc_cred *cred, struct svc_export *exp); __be32 check_nfsd_access(struct svc_export *exp, struct svc_rqst *rqstp); /* |