diff options
| author | Chuck Lever <cel@kernel.org> | 2026-07-17 14:41:11 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-08-26 16:40:54 -0400 |
| commit | 3a7945d956ae245811bce160fbf727f58f517713 (patch) | |
| tree | 996689f9071a791551e03629823c41a36965e912 /scripts/Makefile.thinlto | |
| parent | c77111601196c7b385ccf54f010db720f4ca3e9a (diff) | |
| download | linux-next-3a7945d956ae245811bce160fbf727f58f517713.tar.gz linux-next-3a7945d956ae245811bce160fbf727f58f517713.zip | |
NFSD: Evacuate NFSv4 entry-point prototypes from nfsd.h
nfsd.h is included by nearly every NFSD translation unit, yet the
two blocks of NFSv4 lifecycle and control prototypes it carries are
referenced by only seven of them (out of over two dozen). The
remaining consumers, including the NFSv2 and NFSv3 ACL and XDR
paths, parse these declarations for no benefit.
The declarations cannot simply move into an NFSv4-only header such as
state.h: nfssvc.c, nfsctl.c, vfs.c, and export.c call the routines
unconditionally and rely on the CONFIG_NFSD_V4=n stubs, and pulling
the heavy state.h types into those lean translation units to obtain a
handful of prototypes would trade one form of coupling for a worse
one.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260717184112.507548-6-cel@kernel.org
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
