mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
lockd: Relocate include/linux/lockd/lockd.h
Headers placed in include/linux/ form part of the kernel's internal API and signal to subsystem maintainers that other parts of the kernel may depend on them. By moving lockd.h into fs/lockd/, lockd becomes a more self-contained module whose internal interfaces are clearly distinguished from its public contract with the rest of the kernel. This relocation addresses a long-standing XXX comment in the header itself that acknowledged the file's misplacement. Future changes to lockd internals can now proceed with confidence that external consumers are not inadvertently coupled to implementation details. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
4db2f8a016
commit
2c562c6e67
|
|
@ -13,7 +13,8 @@
|
|||
#include <linux/sunrpc/xdr.h>
|
||||
#include <linux/sunrpc/clnt.h>
|
||||
#include <linux/sunrpc/stats.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
|
||||
#include "lockd.h"
|
||||
|
||||
#include <uapi/linux/nfs3.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@
|
|||
#include <linux/sunrpc/addr.h>
|
||||
#include <linux/sunrpc/svc.h>
|
||||
#include <linux/sunrpc/svc_xprt.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
#include <linux/kthread.h>
|
||||
|
||||
#include "lockd.h"
|
||||
#include "trace.h"
|
||||
|
||||
#define NLMDBG_FACILITY NLMDBG_CLIENT
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@
|
|||
#include <linux/freezer.h>
|
||||
#include <linux/sunrpc/clnt.h>
|
||||
#include <linux/sunrpc/svc.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
|
||||
#include "lockd.h"
|
||||
#include "trace.h"
|
||||
|
||||
#define NLMDBG_FACILITY NLMDBG_CLIENT
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@
|
|||
#include <linux/sunrpc/xdr.h>
|
||||
#include <linux/sunrpc/clnt.h>
|
||||
#include <linux/sunrpc/stats.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
|
||||
#include "lockd.h"
|
||||
|
||||
#include <uapi/linux/nfs2.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -16,13 +16,13 @@
|
|||
#include <linux/sunrpc/clnt.h>
|
||||
#include <linux/sunrpc/addr.h>
|
||||
#include <linux/sunrpc/svc.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
#include <linux/mutex.h>
|
||||
|
||||
#include <linux/sunrpc/svc_xprt.h>
|
||||
|
||||
#include <net/ipv6.h>
|
||||
|
||||
#include "lockd.h"
|
||||
#include "netns.h"
|
||||
|
||||
#define NLMDBG_FACILITY NLMDBG_HOSTCACHE
|
||||
|
|
|
|||
|
|
@ -1,16 +1,10 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* linux/include/linux/lockd/lockd.h
|
||||
*
|
||||
* General-purpose lockd include file.
|
||||
*
|
||||
* Copyright (C) 1996 Olaf Kirch <okir@monad.swb.de>
|
||||
*/
|
||||
|
||||
#ifndef LINUX_LOCKD_LOCKD_H
|
||||
#define LINUX_LOCKD_LOCKD_H
|
||||
|
||||
/* XXX: a lot of this should really be under fs/lockd. */
|
||||
#ifndef _LOCKD_LOCKD_H
|
||||
#define _LOCKD_LOCKD_H
|
||||
|
||||
#include <linux/exportfs.h>
|
||||
#include <linux/in.h>
|
||||
|
|
@ -398,4 +392,4 @@ static inline int nlm_compare_locks(const struct file_lock *fl1,
|
|||
|
||||
extern const struct lock_manager_operations nlmsvc_lock_operations;
|
||||
|
||||
#endif /* LINUX_LOCKD_LOCKD_H */
|
||||
#endif /* _LOCKD_LOCKD_H */
|
||||
|
|
@ -16,10 +16,10 @@
|
|||
#include <linux/sunrpc/addr.h>
|
||||
#include <linux/sunrpc/xprtsock.h>
|
||||
#include <linux/sunrpc/svc.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
|
||||
#include <linux/unaligned.h>
|
||||
|
||||
#include "lockd.h"
|
||||
#include "netns.h"
|
||||
|
||||
#define NLMDBG_FACILITY NLMDBG_MONITOR
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@
|
|||
#include <net/ip.h>
|
||||
#include <net/addrconf.h>
|
||||
#include <net/ipv6.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
#include <linux/nfs.h>
|
||||
|
||||
#include "lockd.h"
|
||||
#include "netns.h"
|
||||
#include "procfs.h"
|
||||
#include "netlink.h"
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@
|
|||
|
||||
#include <linux/types.h>
|
||||
#include <linux/time.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
#include <linux/sunrpc/svc_xprt.h>
|
||||
|
||||
#include "lockd.h"
|
||||
#include "share.h"
|
||||
#include "xdr4.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@
|
|||
#include <linux/sunrpc/clnt.h>
|
||||
#include <linux/sunrpc/svc_xprt.h>
|
||||
#include <linux/lockd/nlm.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
|
||||
#include "lockd.h"
|
||||
|
||||
#define NLMDBG_FACILITY NLMDBG_SVCLOCK
|
||||
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@
|
|||
|
||||
#include <linux/types.h>
|
||||
#include <linux/time.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
#include <linux/sunrpc/svc_xprt.h>
|
||||
|
||||
#include "lockd.h"
|
||||
#include "share.h"
|
||||
|
||||
#define NLMDBG_FACILITY NLMDBG_CLIENT
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@
|
|||
|
||||
#include <linux/sunrpc/clnt.h>
|
||||
#include <linux/sunrpc/svc.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
|
||||
#include "lockd.h"
|
||||
#include "share.h"
|
||||
|
||||
static inline int
|
||||
|
|
|
|||
|
|
@ -15,11 +15,11 @@
|
|||
#include <linux/mutex.h>
|
||||
#include <linux/sunrpc/svc.h>
|
||||
#include <linux/sunrpc/addr.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/mount.h>
|
||||
#include <uapi/linux/nfs2.h>
|
||||
|
||||
#include "lockd.h"
|
||||
#include "share.h"
|
||||
|
||||
#define NLMDBG_FACILITY NLMDBG_SVCSUBS
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@
|
|||
#include <linux/tracepoint.h>
|
||||
#include <linux/crc32.h>
|
||||
#include <linux/nfs.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
|
||||
#include "lockd.h"
|
||||
|
||||
#ifdef CONFIG_LOCKD_V4
|
||||
#define NLM_STATUS_LIST \
|
||||
|
|
|
|||
|
|
@ -15,13 +15,12 @@
|
|||
#include <linux/sunrpc/clnt.h>
|
||||
#include <linux/sunrpc/svc.h>
|
||||
#include <linux/sunrpc/stats.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
|
||||
#include <uapi/linux/nfs2.h>
|
||||
|
||||
#include "lockd.h"
|
||||
#include "svcxdr.h"
|
||||
|
||||
|
||||
static inline loff_t
|
||||
s32_to_loff_t(__s32 offset)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@
|
|||
#include <linux/sunrpc/clnt.h>
|
||||
#include <linux/sunrpc/svc.h>
|
||||
#include <linux/sunrpc/stats.h>
|
||||
#include <linux/lockd/lockd.h>
|
||||
|
||||
#include "lockd.h"
|
||||
#include "svcxdr.h"
|
||||
#include "xdr4.h"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user