summaryrefslogtreecommitdiff
path: root/fs/nfsd/auth.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2024-07-26 12:21:31 +1000
committerChuck Lever <chuck.lever@oracle.com>2024-09-20 19:31:03 -0400
commit9fd45c16f3e3b95b458e049c77f4d7dfef673a52 (patch)
tree2889fe4f7e370ab02f4d6d825d91eec8819de4fb /fs/nfsd/auth.h
parentc55aeef7766cdc52847d03dd1326859c55811a52 (diff)
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/auth.h')
-rw-r--r--fs/nfsd/auth.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/auth.h b/fs/nfsd/auth.h
index dbd66424f600..8c5031bbbcee 100644
--- a/fs/nfsd/auth.h
+++ b/fs/nfsd/auth.h
@@ -12,6 +12,6 @@
* Set the current process's fsuid/fsgid etc to those of the NFS
* client user
*/
-int nfsd_setuser(struct svc_rqst *, struct svc_export *);
+int nfsd_setuser(struct svc_cred *cred, struct svc_export *exp);
#endif /* LINUX_NFSD_AUTH_H */