nfsd: Pass 'cred' instead of 'rqstp' to some functions.
authorNeilBrown <neilb@suse.de>
Fri, 26 Jul 2024 02:21:31 +0000 (12:21 +1000)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 20 Sep 2024 23:31:03 +0000 (19:31 -0400)
commit9fd45c16f3e3b95b458e049c77f4d7dfef673a52
tree2889fe4f7e370ab02f4d6d825d91eec8819de4fb
parentc55aeef7766cdc52847d03dd1326859c55811a52
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>
fs/nfsd/auth.c
fs/nfsd/auth.h
fs/nfsd/export.h
fs/nfsd/nfs4state.c
fs/nfsd/nfsfh.c
fs/nfsd/nfsproc.c
fs/nfsd/vfs.c
fs/nfsd/vfs.h