]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lockd: Simplify cast_status() in svcproc.c
authorChuck Lever <chuck.lever@oracle.com>
Wed, 28 Jan 2026 15:19:22 +0000 (10:19 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 30 Mar 2026 01:25:09 +0000 (21:25 -0400)
commitaa772bcc40e1722302b05045d96c0169ac5a2717
tree33a9ecfb1e1a74c954ab1caeea742832419ff638
parent01afb9008527d2be96046a6859de2951306a93e9
lockd: Simplify cast_status() in svcproc.c

Clean up: The svcproc.c file handles only NLM v1 and v3 requests.
NLMv4 requests are routed to a separate procedure table in
svc4proc.c, so rqstp->rq_vers can never be 4 in this context.

Remove the unused vers parameter and the dead "vers != 4" check from
cast_to_nlm(). This eliminates the need for the macro wrapper.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/lockd/svcproc.c