diff options
| author | Chuck Lever <cel@kernel.org> | 2026-09-16 12:28:54 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-10-11 23:12:54 -0400 |
| commit | f75cd625a8c2a77ca2d54bb2b64149e1f14ccca1 (patch) | |
| tree | 325dbe4730298cac06d3a9cc221fedea9c1b9c12 /tools/lib/python | |
| parent | 6a27ee69d64fbe4634009fbe416ebe2c21125954 (diff) | |
| download | linux-next-f75cd625a8c2a77ca2d54bb2b64149e1f14ccca1.tar.gz linux-next-f75cd625a8c2a77ca2d54bb2b64149e1f14ccca1.zip | |
NFSD: Use xdrgen XDR functions for the NFSv2 STATFS procedure
Replace the NFSPROC_STATFS entry in the nfsd_procedures2 array
with an entry that dispatches the xdrgen-generated
nfs_svc_decode_fhandle and nfs_svc_encode_statfsres. Wrapper
structures bridge the generated xdrgen types and the legacy
svc_fh and kstatfs representations the NFSD VFS layer still uses.
The pc_argzero field is now set to zero for the NFSv2 STATFS
procedure. The xdrgen decoders are trusted to initialize all
arguments in the argp->xdrgen field, making the early defensive
memset unnecessary. The remaining argp fields are cleared as
needed.
nfsd_proc_statfs() now fills in the statfsres info fields
directly. This makes it straightforward to confirm that the file
handle is released during every error flow.
nfssvc_encode_statfsres() no longer has any callers, so it is
removed.
Acked-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260916162859.2051-26-cel@kernel.org
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
