summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorChuck Lever <cel@kernel.org>2026-08-12 10:24:35 -0400
committerChuck Lever <cel@kernel.org>2026-10-04 21:15:29 -0400
commit1fd8ed733cf11b76b38903115ce76cde927f8046 (patch)
treed368564ae733b66cda583c1cc314dff8afaf098d /scripts/Makefile.thinlto
parent19b1b662a23526ce22ffe06c2f446fc3e6b5275a (diff)
NFSD: Move NFSv4-specific CLONE logic into nfsd4_clone()
nfsd4_clone_file_range() lives in fs/nfsd/vfs.c but reaches into the NFSv4 compound reply buffer: nfsd4_get_cstate() casts rq_resp to a struct nfsd4_compoundres to recover the saved and current file handles a tracepoint wants. That is the only reference to the NFSv4 XDR definitions left in vfs.c, and it puts knowledge of the compound reply layout in the VFS layer. Refactor nfsd4_clone_file_range() to remove NFSv4-specific componentry from fs/nfsd/vfs.c. Splitting nfsd_clone_file_range() and nfsd_clone_sync_range() lets nfsd4_clone() distinguish a clone failure from a sync failure, which it has to do because only the latter invalidates the write verifier. Reviewed-by: Jeff Layton <jlayton@kernel.org> Link: https://patch.msgid.link/20260812142436.35042-3-cel@kernel.org Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions