SUNRPC: Replace the "__be32 *p" parameter to .pc_encode
authorChuck Lever <chuck.lever@oracle.com>
Wed, 13 Oct 2021 14:41:06 +0000 (10:41 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 13 Oct 2021 15:34:49 +0000 (11:34 -0400)
commitfda494411485aff91768842c532f90fb8eb54943
tree3104f1b5e3a4360d8163ea80796bb9acaeee9f9a
parent3b0ebb255fdc49a3d340846deebf045ef58ec744
SUNRPC: Replace the "__be32 *p" parameter to .pc_encode

The passed-in value of the "__be32 *p" parameter is now unused in
every server-side XDR encoder, and can be removed.

Note also that there is a line in each encoder that sets up a local
pointer to a struct xdr_stream. Passing that pointer from the
dispatcher instead saves one line per encoder function.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
17 files changed:
fs/lockd/svc.c
fs/lockd/xdr.c
fs/lockd/xdr4.c
fs/nfs/callback_xdr.c
fs/nfsd/nfs2acl.c
fs/nfsd/nfs3acl.c
fs/nfsd/nfs3xdr.c
fs/nfsd/nfs4xdr.c
fs/nfsd/nfsd.h
fs/nfsd/nfssvc.c
fs/nfsd/nfsxdr.c
fs/nfsd/xdr.h
fs/nfsd/xdr3.h
fs/nfsd/xdr4.h
include/linux/lockd/xdr.h
include/linux/lockd/xdr4.h
include/linux/sunrpc/svc.h