blob: aa14ec303e9408a7111bf2cf5ceffeda7703d17e [file] [log] [blame]
Stanislav Kinsbursky1b340d02011-11-25 17:13:04 +03001#ifndef __NFS_NETNS_H__
2#define __NFS_NETNS_H__
3
4#include <net/net_namespace.h>
5#include <net/netns/generic.h>
6
Stanislav Kinsburskycb9c1c42012-03-11 18:20:23 +04007struct bl_dev_msg {
8 int32_t status;
9 uint32_t major, minor;
10};
11
Stanislav Kinsbursky1b340d02011-11-25 17:13:04 +030012struct nfs_net {
13 struct cache_detail *nfs_dns_resolve;
Stanislav Kinsbursky9e2e74d2012-01-10 17:04:24 +040014 struct rpc_pipe *bl_device_pipe;
Stanislav Kinsburskycb9c1c42012-03-11 18:20:23 +040015 struct bl_dev_msg bl_mount_reply;
Stanislav Kinsbursky5ffaf852012-03-11 18:20:31 +040016 wait_queue_head_t bl_wq;
Stanislav Kinsbursky6b131682012-01-23 17:26:05 +000017 struct list_head nfs_client_list;
Stanislav Kinsburskyc25d32b2012-01-23 17:26:14 +000018 struct list_head nfs_volume_list;
Stanislav Kinsbursky28cd1b32012-01-23 17:26:22 +000019#ifdef CONFIG_NFS_V4
20 struct idr cb_ident_idr; /* Protected by nfs_client_lock */
21#endif
Stanislav Kinsburskydc030852012-01-23 17:26:31 +000022 spinlock_t nfs_client_lock;
Stanislav Kinsbursky1b340d02011-11-25 17:13:04 +030023};
24
25extern int nfs_net_id;
26
27#endif