Chuck Lever | f092075 | 2012-05-21 22:45:41 -0400 | [diff] [blame] | 1 | /* |
| 2 | * NFS-private data for each "struct net". Accessed with net_generic(). |
| 3 | */ |
| 4 | |
Stanislav Kinsbursky | 1b340d0 | 2011-11-25 17:13:04 +0300 | [diff] [blame] | 5 | #ifndef __NFS_NETNS_H__ |
| 6 | #define __NFS_NETNS_H__ |
| 7 | |
| 8 | #include <net/net_namespace.h> |
| 9 | #include <net/netns/generic.h> |
| 10 | |
Stanislav Kinsbursky | cb9c1c4 | 2012-03-11 18:20:23 +0400 | [diff] [blame] | 11 | struct bl_dev_msg { |
| 12 | int32_t status; |
| 13 | uint32_t major, minor; |
| 14 | }; |
| 15 | |
Stanislav Kinsbursky | 1b340d0 | 2011-11-25 17:13:04 +0300 | [diff] [blame] | 16 | struct nfs_net { |
| 17 | struct cache_detail *nfs_dns_resolve; |
Stanislav Kinsbursky | 9e2e74d | 2012-01-10 17:04:24 +0400 | [diff] [blame] | 18 | struct rpc_pipe *bl_device_pipe; |
Stanislav Kinsbursky | cb9c1c4 | 2012-03-11 18:20:23 +0400 | [diff] [blame] | 19 | struct bl_dev_msg bl_mount_reply; |
Stanislav Kinsbursky | 5ffaf85 | 2012-03-11 18:20:31 +0400 | [diff] [blame] | 20 | wait_queue_head_t bl_wq; |
Stanislav Kinsbursky | 6b13168 | 2012-01-23 17:26:05 +0000 | [diff] [blame] | 21 | struct list_head nfs_client_list; |
Stanislav Kinsbursky | c25d32b | 2012-01-23 17:26:14 +0000 | [diff] [blame] | 22 | struct list_head nfs_volume_list; |
Stanislav Kinsbursky | 28cd1b3 | 2012-01-23 17:26:22 +0000 | [diff] [blame] | 23 | #ifdef CONFIG_NFS_V4 |
| 24 | struct idr cb_ident_idr; /* Protected by nfs_client_lock */ |
| 25 | #endif |
Stanislav Kinsbursky | dc03085 | 2012-01-23 17:26:31 +0000 | [diff] [blame] | 26 | spinlock_t nfs_client_lock; |
Chuck Lever | f092075 | 2012-05-21 22:45:41 -0400 | [diff] [blame] | 27 | struct timespec boot_time; |
Stanislav Kinsbursky | 1b340d0 | 2011-11-25 17:13:04 +0300 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | extern int nfs_net_id; |
| 31 | |
| 32 | #endif |