]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lockd: Relocate nlmsvc_unlock API declarations
authorChuck Lever <chuck.lever@oracle.com>
Wed, 28 Jan 2026 15:19:26 +0000 (10:19 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 30 Mar 2026 01:25:09 +0000 (21:25 -0400)
commitefb5b15e3b78f5644dd2d4ddec8880e0c9aa5b5f
tree2eb26012595df58fa1097cf6bb21af2910b439cf
parent7db001e03d7a668ca6c3789fee42a24236ca90f6
lockd: Relocate nlmsvc_unlock API declarations

The nlmsvc_unlock_all_by_sb() and nlmsvc_unlock_all_by_ip()
functions are part of lockd's external API, consumed by other
kernel subsystems. Their declarations currently reside in
linux/lockd/lockd.h alongside internal implementation details,
which blurs the boundary between lockd's public interface and
its private internals.

Moving these declarations to linux/lockd/bind.h groups them
with other external API functions and makes the separation
explicit. This clarifies which functions are intended for
external use and reduces the risk of internal implementation
details leaking into the public API surface.

Build-tested with allyesconfig; no functional changes.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfsctl.c
include/linux/lockd/bind.h
include/linux/lockd/lockd.h