NFSD: Clean up nfsd4_encode_sequence()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 2 Oct 2023 14:51:37 +0000 (10:51 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:33 +0000 (12:44 -0400)
commit6621b88b4b2189a0dd601cd036e27a829868df31
tree5c9a594f76c0af6dc91ade163085e0af25c02fc1
parentb0c1b1ba142601c24333d5d38461396f11dae478
NFSD: Clean up nfsd4_encode_sequence()

De-duplicate open-coded encoding of the sessionid, and convert the
rest of the function to use conventional XDR utility functions.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4xdr.c
fs/nfsd/xdr4.h