NFSD: Clean up nfsd4_encode_copy()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 9 Oct 2023 18:30:09 +0000 (14:30 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:36 +0000 (12:44 -0400)
commit02e0297f160aa1ba9835fed3c97845c9450c2dc3
tree95e6e9dc80b88406fbc96056f39279b772980219
parent08b4436afb5034be9054b33035c5bb3ff5eec0ea
NFSD: Clean up nfsd4_encode_copy()

Restructure this function using conventional XDR utility functions
and so it aligns better with the XDR in the specification.

I've also moved nfsd4_encode_copy() closer to the data type encoders
that only it uses.

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