]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lockd: Prepare share helpers for xdrgen conversion
authorChuck Lever <chuck.lever@oracle.com>
Tue, 17 Feb 2026 22:07:14 +0000 (17:07 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 30 Mar 2026 01:25:09 +0000 (21:25 -0400)
commit4e6814b1750770213ab5b81bc04d8b941435a7b2
tree8b5fc01aca9b14d3f460fe9cd8200356d8b91e08
parentbb2a70b610810874838f176a0d157d5cd0226c18
lockd: Prepare share helpers for xdrgen conversion

In order to convert the NLMv4 server-side XDR functions to use
xdrgen, the internal share helpers need to be decoupled from the
NLMv3-specific struct nlm_args. NLMv4 procedures will use
different argument structures once they are converted.

Refactor nlmsvc_share_file() and nlmsvc_unshare_file() to accept
individual arguments (oh, access, mode) instead of the common
struct nlm_args. This allows both protocol versions to call these
helpers without forcing a common argument structure.

While here, add kdoc comments to both functions and fix a comment
typo in the unshare path.

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