diff options
| author | Chuck Lever <cel@kernel.org> | 2026-09-16 12:28:47 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-10-11 23:12:40 -0400 |
| commit | d3d1c5a3c7a7e48d7871433bcb5288845ff3f93c (patch) | |
| tree | 3d83577bdcaeb69863aa93ed57b8e304594e10c6 /tools/lib/python | |
| parent | a4836d617168c883e18f570f30304e7f98978657 (diff) | |
| download | linux-next-d3d1c5a3c7a7e48d7871433bcb5288845ff3f93c.tar.gz linux-next-d3d1c5a3c7a7e48d7871433bcb5288845ff3f93c.zip | |
NFSD: Use xdrgen XDR functions for NFSv2 CREATE procedure
Replace the NFSPROC_CREATE entry in the nfsd_procedures2 array
with an entry that dispatches the xdrgen-generated
nfs_svc_decode_createargs and nfs_svc_encode_diropres. Wrapper
structures bridge the generated xdrgen types and the legacy
svc_fh, iattr, and kstat representations the NFSD VFS layer still
uses.
The pc_argzero field is now set to zero for the NFSv2 CREATE
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.
This refactor replaces the use of svcxdr_encode_fattr(), so the
references to the parent directory and the new object file
handles can be released directly by nfsd_proc_create(). A
separate ->pc_release callback is thus no longer needed. This
makes it straightforward to confirm that the file handles are
properly released during every error flow.
nfssvc_decode_createargs remains for the MKDIR procedure which
uses the same argument structure.
Acked-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260916162859.2051-19-cel@kernel.org
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
