Stanislav Kinsbursky | a9c5d73 | 2012-01-31 15:07:57 +0400 | [diff] [blame] | 1 | #ifndef __LOCKD_NETNS_H__ |
| 2 | #define __LOCKD_NETNS_H__ |
| 3 | |
Stanislav Kinsbursky | 08d44a3 | 2012-07-25 16:56:50 +0400 | [diff] [blame] | 4 | #include <linux/fs.h> |
Stanislav Kinsbursky | a9c5d73 | 2012-01-31 15:07:57 +0400 | [diff] [blame] | 5 | #include <net/netns/generic.h> |
| 6 | |
| 7 | struct lockd_net { |
| 8 | unsigned int nlmsvc_users; |
Stanislav Kinsbursky | 3cf7fb0 | 2012-07-25 16:56:11 +0400 | [diff] [blame] | 9 | unsigned long next_gc; |
Stanislav Kinsbursky | caa4e76 | 2012-07-25 16:56:19 +0400 | [diff] [blame] | 10 | unsigned long nrhosts; |
Stanislav Kinsbursky | 66547b0 | 2012-07-25 16:56:43 +0400 | [diff] [blame] | 11 | |
| 12 | struct delayed_work grace_period_end; |
Stanislav Kinsbursky | 08d44a3 | 2012-07-25 16:56:50 +0400 | [diff] [blame] | 13 | struct lock_manager lockd_manager; |
Stanislav Kinsbursky | e9406db | 2012-09-18 13:37:12 +0400 | [diff] [blame] | 14 | |
| 15 | spinlock_t nsm_clnt_lock; |
| 16 | unsigned int nsm_users; |
| 17 | struct rpc_clnt *nsm_clnt; |
Stanislav Kinsbursky | a9c5d73 | 2012-01-31 15:07:57 +0400 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | extern int lockd_net_id; |
| 21 | |
| 22 | #endif |