#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/time.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <linux/stat.h>
#include <linux/errno.h>
#include <linux/unistd.h>
#include <linux/sunrpc/addr.h>
#include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/stats.h>
#include <linux/sunrpc/metrics.h>
#include <linux/sunrpc/xprtsock.h>
#include <linux/sunrpc/xprtrdma.h>
#include <linux/nfs_fs.h>
#include <linux/nfs_mount.h>
#include <linux/nfs4_mount.h>
#include <linux/lockd/bind.h>
#include <linux/seq_file.h>
#include <linux/mount.h>
#include <linux/vfs.h>
#include <linux/inet.h>
#include <linux/in6.h>
#include <linux/slab.h>
#include <linux/idr.h>
#include <net/ipv6.h>
#include <linux/nfs_xdr.h>
#include <linux/sunrpc/bc_xprt.h>
#include <linux/nsproxy.h>
#include <linux/pid_namespace.h>
#include "nfs4_fs.h"
#include "callback.h"
#include "delegation.h"
#include "iostat.h"
#include "internal.h"
#include "fscache.h"
#include "pnfs.h"
#include "nfs.h"
#include "netns.h"
#include "sysfs.h"
#include "nfs42.h"
#define NFSDBG_FACILITY …
static DECLARE_WAIT_QUEUE_HEAD(nfs_client_active_wq);
static DEFINE_SPINLOCK(nfs_version_lock);
static DEFINE_MUTEX(nfs_version_mutex);
static LIST_HEAD(nfs_versions);
static const struct rpc_version *nfs_version[5] = …;
const struct rpc_program nfs_program = …;
static struct nfs_subversion *find_nfs_version(unsigned int version)
{ … }
struct nfs_subversion *get_nfs_version(unsigned int version)
{ … }
void put_nfs_version(struct nfs_subversion *nfs)
{ … }
void register_nfs_version(struct nfs_subversion *nfs)
{ … }
EXPORT_SYMBOL_GPL(…);
void unregister_nfs_version(struct nfs_subversion *nfs)
{ … }
EXPORT_SYMBOL_GPL(…);
struct nfs_client *nfs_alloc_client(const struct nfs_client_initdata *cl_init)
{ … }
EXPORT_SYMBOL_GPL(…);
#if IS_ENABLED(CONFIG_NFS_V4)
static void nfs_cleanup_cb_ident_idr(struct net *net)
{ … }
static void nfs_cb_idr_remove_locked(struct nfs_client *clp)
{ … }
static void pnfs_init_server(struct nfs_server *server)
{ … }
#else
static void nfs_cleanup_cb_ident_idr(struct net *net)
{
}
static void nfs_cb_idr_remove_locked(struct nfs_client *clp)
{
}
static void pnfs_init_server(struct nfs_server *server)
{
}
#endif
void nfs_free_client(struct nfs_client *clp)
{ … }
EXPORT_SYMBOL_GPL(…);
void nfs_put_client(struct nfs_client *clp)
{ … }
EXPORT_SYMBOL_GPL(…);
static struct nfs_client *nfs_match_client(const struct nfs_client_initdata *data)
{ … }
bool nfs_client_init_is_complete(const struct nfs_client *clp)
{ … }
EXPORT_SYMBOL_GPL(…);
int nfs_client_init_status(const struct nfs_client *clp)
{ … }
EXPORT_SYMBOL_GPL(…);
int nfs_wait_client_init_complete(const struct nfs_client *clp)
{ … }
EXPORT_SYMBOL_GPL(…);
static struct nfs_client *
nfs_found_client(const struct nfs_client_initdata *cl_init,
struct nfs_client *clp)
{ … }
struct nfs_client *nfs_get_client(const struct nfs_client_initdata *cl_init)
{ … }
EXPORT_SYMBOL_GPL(…);
void nfs_mark_client_ready(struct nfs_client *clp, int state)
{ … }
EXPORT_SYMBOL_GPL(…);
void nfs_init_timeout_values(struct rpc_timeout *to, int proto,
int timeo, int retrans)
{ … }
EXPORT_SYMBOL_GPL(…);
int nfs_create_rpc_client(struct nfs_client *clp,
const struct nfs_client_initdata *cl_init,
rpc_authflavor_t flavor)
{ … }
EXPORT_SYMBOL_GPL(…);
static void nfs_destroy_server(struct nfs_server *server)
{ … }
static int nfs_start_lockd(struct nfs_server *server)
{ … }
int nfs_init_server_rpcclient(struct nfs_server *server,
const struct rpc_timeout *timeo,
rpc_authflavor_t pseudoflavour)
{ … }
EXPORT_SYMBOL_GPL(…);
struct nfs_client *nfs_init_client(struct nfs_client *clp,
const struct nfs_client_initdata *cl_init)
{ … }
EXPORT_SYMBOL_GPL(…);
static int nfs_init_server(struct nfs_server *server,
const struct fs_context *fc)
{ … }
static void nfs_server_set_fsinfo(struct nfs_server *server,
struct nfs_fsinfo *fsinfo)
{ … }
static int nfs_probe_fsinfo(struct nfs_server *server, struct nfs_fh *mntfh, struct nfs_fattr *fattr)
{ … }
int nfs_probe_server(struct nfs_server *server, struct nfs_fh *mntfh)
{ … }
EXPORT_SYMBOL_GPL(…);
void nfs_server_copy_userdata(struct nfs_server *target, struct nfs_server *source)
{ … }
EXPORT_SYMBOL_GPL(…);
void nfs_server_insert_lists(struct nfs_server *server)
{ … }
EXPORT_SYMBOL_GPL(…);
void nfs_server_remove_lists(struct nfs_server *server)
{ … }
EXPORT_SYMBOL_GPL(…);
static DEFINE_IDA(s_sysfs_ids);
struct nfs_server *nfs_alloc_server(void)
{ … }
EXPORT_SYMBOL_GPL(…);
static void delayed_free(struct rcu_head *p)
{ … }
void nfs_free_server(struct nfs_server *server)
{ … }
EXPORT_SYMBOL_GPL(…);
struct nfs_server *nfs_create_server(struct fs_context *fc)
{ … }
EXPORT_SYMBOL_GPL(…);
struct nfs_server *nfs_clone_server(struct nfs_server *source,
struct nfs_fh *fh,
struct nfs_fattr *fattr,
rpc_authflavor_t flavor)
{ … }
EXPORT_SYMBOL_GPL(…);
void nfs_clients_init(struct net *net)
{ … }
void nfs_clients_exit(struct net *net)
{ … }
#ifdef CONFIG_PROC_FS
static void *nfs_server_list_start(struct seq_file *p, loff_t *pos);
static void *nfs_server_list_next(struct seq_file *p, void *v, loff_t *pos);
static void nfs_server_list_stop(struct seq_file *p, void *v);
static int nfs_server_list_show(struct seq_file *m, void *v);
static const struct seq_operations nfs_server_list_ops = …;
static void *nfs_volume_list_start(struct seq_file *p, loff_t *pos);
static void *nfs_volume_list_next(struct seq_file *p, void *v, loff_t *pos);
static void nfs_volume_list_stop(struct seq_file *p, void *v);
static int nfs_volume_list_show(struct seq_file *m, void *v);
static const struct seq_operations nfs_volume_list_ops = …;
static void *nfs_server_list_start(struct seq_file *m, loff_t *_pos)
__acquires(&nn->nfs_client_lock)
{ … }
static void *nfs_server_list_next(struct seq_file *p, void *v, loff_t *pos)
{ … }
static void nfs_server_list_stop(struct seq_file *p, void *v)
__releases(&nn->nfs_client_lock)
{ … }
static int nfs_server_list_show(struct seq_file *m, void *v)
{ … }
static void *nfs_volume_list_start(struct seq_file *m, loff_t *_pos)
__acquires(&nn->nfs_client_lock)
{ … }
static void *nfs_volume_list_next(struct seq_file *p, void *v, loff_t *pos)
{ … }
static void nfs_volume_list_stop(struct seq_file *p, void *v)
__releases(&nn->nfs_client_lock)
{ … }
static int nfs_volume_list_show(struct seq_file *m, void *v)
{ … }
int nfs_fs_proc_net_init(struct net *net)
{ … }
void nfs_fs_proc_net_exit(struct net *net)
{ … }
int __init nfs_fs_proc_init(void)
{ … }
void nfs_fs_proc_exit(void)
{ … }
#endif