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 | |
Andrey Ryabinin | 0ad9547 | 2015-09-23 15:49:29 +0300 | [diff] [blame] | 15 | struct list_head nsm_handles; |
Stanislav Kinsbursky | a9c5d73 | 2012-01-31 15:07:57 +0400 | [diff] [blame] | 16 | }; |
| 17 | |
Alexey Dobriyan | c7d03a0 | 2016-11-17 04:58:21 +0300 | [diff] [blame^] | 18 | extern unsigned int lockd_net_id; |
Stanislav Kinsbursky | a9c5d73 | 2012-01-31 15:07:57 +0400 | [diff] [blame] | 19 | |
| 20 | #endif |