NFSD: Clean up nfsd4_encode_replay()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 5 Mar 2024 00:02:30 +0000 (19:02 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 9 Mar 2024 18:57:50 +0000 (13:57 -0500)
commit9b350d3e349f2c4ba4e046001446d533471844a7
treebf4a41570d090017e00a01fbf89a324c81918a1f
parentbad4c585ccaaf53c23fbf2b221b88c24576a80fd
NFSD: Clean up nfsd4_encode_replay()

Replace open-coded encoding logic with the use of conventional XDR
utility functions. Add a tracepoint to make replays observable in
field troubleshooting situations.

The WARN_ON is removed. A stack trace is of little use, as there is
only one call site for nfsd4_encode_replay(), and a buffer length
shortage here is unlikely.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4xdr.c
fs/nfsd/trace.h