diff options
| author | Chuck Lever <cel@kernel.org> | 2026-09-16 12:28:53 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-10-11 23:12:52 -0400 |
| commit | 6a27ee69d64fbe4634009fbe416ebe2c21125954 (patch) | |
| tree | 96469959a4e35e41d8f14bb5e43438bb4070c576 /tools/lib/python | |
| parent | 1ed756d42ce923537cff3e7bcd8959e3e258f883 (diff) | |
| download | linux-next-6a27ee69d64fbe4634009fbe416ebe2c21125954.tar.gz linux-next-6a27ee69d64fbe4634009fbe416ebe2c21125954.zip | |
NFSD: Use xdrgen XDR functions for NFSv2 RMDIR procedure
Replace the NFSPROC_RMDIR entry in the nfsd_procedures2 array
with an entry that dispatches the xdrgen-generated
nfs_svc_decode_diropargs and nfs_svc_encode_nfsstat. A wrapper
structure bridges the generated xdrgen diropargs type and the
legacy svc_fh representation the NFSD VFS layer still uses.
The pc_argzero field is now set to zero for the NFSv2 RMDIR
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.
RMDIR is the last procedure to use the hand-coded
nfssvc_decode_diropargs() and nfssvc_encode_statres(), so they no
longer have any callers and are removed, along with the
svcxdr_decode_diropargs() and svcxdr_decode_filename() helpers
they relied on. The now-unused nfsd_diropargs and nfsd_stat
structures are removed as well.
Acked-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260916162859.2051-25-cel@kernel.org
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
