summaryrefslogtreecommitdiff
path: root/include/linux/lockd/bind.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2026-01-28 10:19:33 -0500
committerChuck Lever <chuck.lever@oracle.com>2026-03-29 21:25:09 -0400
commit5829352e568d24dd04ae112128a4f44748d073bc (patch)
tree93fa7580d619da5fe923c635f07d97b08b515e02 /include/linux/lockd/bind.h
parent615384a24b1e6b0f091ebc1dfbf7ec8b4c27fa81 (diff)
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>
Diffstat (limited to 'include/linux/lockd/bind.h')
-rw-r--r--include/linux/lockd/bind.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/lockd/bind.h b/include/linux/lockd/bind.h
index ba9258c96bfd..b614e0deea72 100644
--- a/include/linux/lockd/bind.h
+++ b/include/linux/lockd/bind.h
@@ -10,8 +10,6 @@
#ifndef LINUX_LOCKD_BIND_H
#define LINUX_LOCKD_BIND_H
-#include <linux/lockd/nlm.h>
-
struct file_lock;
struct nfs_fh;
struct svc_rqst;