]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lockd: Remove dead code from fs/lockd/xdr4.c
authorChuck Lever <chuck.lever@oracle.com>
Tue, 17 Feb 2026 22:07:21 +0000 (17:07 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 30 Mar 2026 01:25:09 +0000 (21:25 -0400)
commit4f406a2c1e23b03c8f5920318a0effb15ba238da
tree9edc1452a5b229b81ccdf2fba050d958c121d110
parentb131a424b0860d14b2778a5d3a8295f19e816291
lockd: Remove dead code from fs/lockd/xdr4.c

Now that all NLMv4 server-side procedures use XDR encoder and
decoder functions generated by xdrgen, the hand-written code in
fs/lockd/xdr4.c is no longer needed. This file contained the
original XDR processing logic that has been systematically
replaced throughout this series.

Remove the file and its Makefile reference to eliminate the
dead code. The helper function nlm4svc_set_file_lock_range()
is still needed by the generated code, so move it to xdr4.h
as an inline function where it remains accessible.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/lockd/Makefile
fs/lockd/clnt4xdr.c
fs/lockd/lockd.h
fs/lockd/svc4proc.c
fs/lockd/xdr4.c [deleted file]
fs/lockd/xdr4.h [deleted file]