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 | db9c455 | 2012-07-25 16:57:13 +0400 | [diff] [blame] | 14 | struct list_head grace_list; |
Stanislav Kinsbursky | a9c5d73 | 2012-01-31 15:07:57 +0400 | [diff] [blame] | 15 | }; |
| 16 | |
| 17 | extern int lockd_net_id; |
| 18 | |
| 19 | #endif |