]> git.ipfire.org Git - thirdparty/linux.git/commit
lockd: Make linux/lockd/nlm.h an internal header
authorChuck Lever <chuck.lever@oracle.com>
Wed, 28 Jan 2026 15:19:33 +0000 (10:19 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 30 Mar 2026 01:25:09 +0000 (21:25 -0400)
commit5829352e568d24dd04ae112128a4f44748d073bc
tree93fa7580d619da5fe923c635f07d97b08b515e02
parent615384a24b1e6b0f091ebc1dfbf7ec8b4c27fa81
lockd: Make linux/lockd/nlm.h an internal header

The NLM protocol constants and status codes in nlm.h are needed
only by lockd's internal implementation. NFS client code and
NFSD interact with lockd through the stable API in bind.h and
have no direct use for protocol-level definitions.

Exposing these definitions globally via bind.h creates unnecessary
coupling between lockd internals and its consumers. Moving nlm.h
from include/linux/lockd/ to fs/lockd/ clarifies the API boundary:
bind.h provides the lockd service interface, while nlm.h remains
available only to code within fs/lockd/ that implements the
protocol.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/lockd/lockd.h
fs/lockd/nlm.h [moved from include/linux/lockd/nlm.h with 91% similarity]
fs/lockd/svclock.c
include/linux/lockd/bind.h