Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Stanislav Kinsbursky | a9c5d73 | 2012-01-31 15:07:57 +0400 | [diff] [blame] | 2 | #ifndef __LOCKD_NETNS_H__ |
| 3 | #define __LOCKD_NETNS_H__ |
| 4 | |
Stanislav Kinsbursky | 08d44a3 | 2012-07-25 16:56:50 +0400 | [diff] [blame] | 5 | #include <linux/fs.h> |
Stanislav Kinsbursky | a9c5d73 | 2012-01-31 15:07:57 +0400 | [diff] [blame] | 6 | #include <net/netns/generic.h> |
| 7 | |
| 8 | struct lockd_net { |
| 9 | unsigned int nlmsvc_users; |
Stanislav Kinsbursky | 3cf7fb0 | 2012-07-25 16:56:11 +0400 | [diff] [blame] | 10 | unsigned long next_gc; |
Stanislav Kinsbursky | caa4e76 | 2012-07-25 16:56:19 +0400 | [diff] [blame] | 11 | unsigned long nrhosts; |
Stanislav Kinsbursky | 66547b0 | 2012-07-25 16:56:43 +0400 | [diff] [blame] | 12 | |
| 13 | struct delayed_work grace_period_end; |
Stanislav Kinsbursky | 08d44a3 | 2012-07-25 16:56:50 +0400 | [diff] [blame] | 14 | struct lock_manager lockd_manager; |
Stanislav Kinsbursky | e9406db | 2012-09-18 13:37:12 +0400 | [diff] [blame] | 15 | |
Andrey Ryabinin | 0ad9547 | 2015-09-23 15:49:29 +0300 | [diff] [blame] | 16 | struct list_head nsm_handles; |
Stanislav Kinsbursky | a9c5d73 | 2012-01-31 15:07:57 +0400 | [diff] [blame] | 17 | }; |
| 18 | |
Alexey Dobriyan | c7d03a0 | 2016-11-17 04:58:21 +0300 | [diff] [blame] | 19 | extern unsigned int lockd_net_id; |
Stanislav Kinsbursky | a9c5d73 | 2012-01-31 15:07:57 +0400 | [diff] [blame] | 20 | |
| 21 | #endif |