diff options
| author | Chuck Lever <cel@kernel.org> | 2026-09-16 12:28:41 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-10-11 23:12:28 -0400 |
| commit | 463ffa098a429f7a1bca64646c945c6886c45bee (patch) | |
| tree | 8316d08eacc7f75d0aba2d77aab229917c82f2f8 /tools/lib/python | |
| parent | 14b4db3f33354861fb21eefafdeec6e9fd383dff (diff) | |
| download | linux-next-463ffa098a429f7a1bca64646c945c6886c45bee.tar.gz linux-next-463ffa098a429f7a1bca64646c945c6886c45bee.zip | |
NFSD: Use xdrgen XDR functions for the NFSv2 LOOKUP procedure
Replace the NFSPROC_LOOKUP entry in the nfsd_procedures2 array
with an entry that dispatches the xdrgen-generated
nfs_svc_decode_diropargs and nfs_svc_encode_diropres. Wrapper
structures bridge the generated xdrgen types and the legacy
svc_fh and kstat representations the NFSD VFS layer still uses.
The pc_argzero field is now set to zero for the NFSv2 LOOKUP
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 directory and object file handles can be
released directly by nfsd_proc_lookup(). 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.
Acked-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260916162859.2051-13-cel@kernel.org
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
