]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad86c03c9425b6cd2974c6b7f9c2d5bcaac52703
tree3104f1b5e3a4360d8163ea80796bb9acaeee9f9a
parenta29eeefaf43864b5fec28ab1ef2f30d8e1fe9e00
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