summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorChuck Lever <cel@kernel.org>2026-09-16 12:28:44 -0400
committerChuck Lever <cel@kernel.org>2026-10-11 23:12:34 -0400
commit2c9d3a4ff074895e5521a6f3aca2229fe3dd0801 (patch)
tree754abe7c263aa98dfc47da832b82b350c606b57b /tools/lib/python
parent4a814c452d976f4adc367a8ea8dbef33d923f35d (diff)
downloadlinux-next-2c9d3a4ff074895e5521a6f3aca2229fe3dd0801.tar.gz
linux-next-2c9d3a4ff074895e5521a6f3aca2229fe3dd0801.zip
NFSD: Use xdrgen XDR functions for the NFSv2 WRITECACHE procedure
Hand-written XDR encoders and decoders are difficult to maintain and can diverge from protocol specifications. Migrating to xdrgen-generated code improves type safety and ensures the implementation matches the NFS version 2 protocol specification exactly. Convert the WRITECACHE procedure to use xdrgen_svc_decode_void and xdrgen_svc_encode_void, the built-ins declared in include/linux/sunrpc/xdrgen/_builtins.h. WRITECACHE is reserved and has neither arguments nor results, so its entry mirrors the NULL procedure. WRITECACHE returns no XDR-encoded data, so pc_xdrressize is set to XDR_void. The argzero field is also set to zero since xdrgen decoders initialize all decoded values. Acked-by: Jeff Layton <jlayton@kernel.org> Link: https://patch.msgid.link/20260916162859.2051-16-cel@kernel.org Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions