mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-18 23:09:29 +02:00
NFSD: include "netns.h"
Nothing in fs/nfsd/nfsd.h needs the contents of "netns.h"; the prototypes there that take a struct nfsd_net pointer need only a forward declaration of that type. Relocate the existing forward declaration ahead of the first such prototype, drop the "netns.h" include from nfsd.h, and include it directly in the translation units that operate on struct nfsd_net. "netns.h" had also been the path by which <linux/filelock.h> reached nfsxdr.c and state.h. Both now include <linux/filelock.h> themselves. Link: https://patch.msgid.link/20260712204554.125308-4-cel@kernel.org Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <cel@kernel.org>
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include <net/checksum.h>
|
||||
|
||||
#include "nfsd.h"
|
||||
#include "netns.h"
|
||||
#include "stats.h"
|
||||
#include "cache.h"
|
||||
#include "trace.h"
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "idmap.h"
|
||||
#include "nfsd.h"
|
||||
#include "netns.h"
|
||||
#include "stats.h"
|
||||
#include "cache.h"
|
||||
#include "state.h"
|
||||
|
||||
+2
-4
@@ -40,8 +40,6 @@
|
||||
#define NFSD_SUPPORTED_MINOR_VERSION 2
|
||||
bool nfsd_support_version(int vers);
|
||||
|
||||
#include "netns.h"
|
||||
|
||||
/*
|
||||
* Default and maximum payload size (NFS READ or WRITE), in bytes.
|
||||
* The maximum is an implementation limit.
|
||||
@@ -100,6 +98,8 @@ struct nfsdfs_client {
|
||||
void (*cl_release)(struct kref *kref);
|
||||
};
|
||||
|
||||
struct nfsd_net;
|
||||
|
||||
struct nfsdfs_client *get_nfsdfs_client(struct inode *);
|
||||
struct dentry *nfsd_client_mkdir(struct nfsd_net *nn,
|
||||
struct nfsdfs_client *ncl, u32 id,
|
||||
@@ -125,8 +125,6 @@ extern const struct svc_version nfsd_acl_version3;
|
||||
extern const struct svc_version localio_version1;
|
||||
#endif
|
||||
|
||||
struct nfsd_net;
|
||||
|
||||
enum vers_op {NFSD_SET, NFSD_CLEAR, NFSD_TEST, NFSD_AVAIL };
|
||||
int nfsd_vers(struct nfsd_net *nn, int vers, enum vers_op change);
|
||||
int nfsd_minorversion(struct nfsd_net *nn, u32 minorversion, enum vers_op change);
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <linux/sunrpc/svcauth_gss.h>
|
||||
#include <crypto/utils.h>
|
||||
#include "nfsd.h"
|
||||
#include "netns.h"
|
||||
#include "stats.h"
|
||||
#include "vfs.h"
|
||||
#include "auth.h"
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
* Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
|
||||
*/
|
||||
|
||||
#include <linux/filelock.h>
|
||||
|
||||
#include "vfs.h"
|
||||
#include "xdr.h"
|
||||
#include "auth.h"
|
||||
|
||||
@@ -36,9 +36,12 @@
|
||||
#define _NFSD4_STATE_H
|
||||
|
||||
#include <crypto/md5.h>
|
||||
|
||||
#include <linux/filelock.h>
|
||||
#include <linux/idr.h>
|
||||
#include <linux/refcount.h>
|
||||
#include <linux/sunrpc/svc_xprt.h>
|
||||
|
||||
#include "nfsfh.h"
|
||||
#include "nfsd.h"
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <net/net_namespace.h>
|
||||
|
||||
#include "nfsd.h"
|
||||
#include "netns.h"
|
||||
#include "stats.h"
|
||||
|
||||
static int nfsd_show(struct seq_file *seq, void *v)
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "export.h"
|
||||
#include "nfsfh.h"
|
||||
#include "xdr4.h"
|
||||
#include "netns.h"
|
||||
|
||||
#define NFSD_TRACE_PROC_CALL_FIELDS(r) \
|
||||
__field(unsigned int, netns_ino) \
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#endif /* CONFIG_NFSD_V4 */
|
||||
|
||||
#include "nfsd.h"
|
||||
#include "netns.h"
|
||||
#include "stats.h"
|
||||
#include "vfs.h"
|
||||
#include "filecache.h"
|
||||
|
||||
Reference in New Issue
Block a user