blob: 8a6394edb8b015375eb26016594a09e7b275261f [file] [log] [blame]
Chuck Leverf0920752012-05-21 22:45:41 -04001/*
2 * NFS-private data for each "struct net". Accessed with net_generic().
3 */
4
Stanislav Kinsbursky1b340d02011-11-25 17:13:04 +03005#ifndef __NFS_NETNS_H__
6#define __NFS_NETNS_H__
7
8#include <net/net_namespace.h>
9#include <net/netns/generic.h>
10
Stanislav Kinsburskycb9c1c42012-03-11 18:20:23 +040011struct bl_dev_msg {
12 int32_t status;
13 uint32_t major, minor;
14};
15
Stanislav Kinsbursky1b340d02011-11-25 17:13:04 +030016struct nfs_net {
17 struct cache_detail *nfs_dns_resolve;
Stanislav Kinsbursky9e2e74d2012-01-10 17:04:24 +040018 struct rpc_pipe *bl_device_pipe;
Stanislav Kinsburskycb9c1c42012-03-11 18:20:23 +040019 struct bl_dev_msg bl_mount_reply;
Stanislav Kinsbursky5ffaf852012-03-11 18:20:31 +040020 wait_queue_head_t bl_wq;
Stanislav Kinsbursky6b131682012-01-23 17:26:05 +000021 struct list_head nfs_client_list;
Stanislav Kinsburskyc25d32b2012-01-23 17:26:14 +000022 struct list_head nfs_volume_list;
Stanislav Kinsbursky28cd1b32012-01-23 17:26:22 +000023#ifdef CONFIG_NFS_V4
24 struct idr cb_ident_idr; /* Protected by nfs_client_lock */
25#endif
Stanislav Kinsburskydc030852012-01-23 17:26:31 +000026 spinlock_t nfs_client_lock;
Chuck Leverf0920752012-05-21 22:45:41 -040027 struct timespec boot_time;
Stanislav Kinsbursky1b340d02011-11-25 17:13:04 +030028};
29
30extern int nfs_net_id;
31
32#endif