blob: 5bec78c8e431ff0c512605025726e4882190529f [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Stanislav Kinsburskya9c5d732012-01-31 15:07:57 +04002#ifndef __LOCKD_NETNS_H__
3#define __LOCKD_NETNS_H__
4
Stanislav Kinsbursky08d44a32012-07-25 16:56:50 +04005#include <linux/fs.h>
Stanislav Kinsburskya9c5d732012-01-31 15:07:57 +04006#include <net/netns/generic.h>
7
8struct lockd_net {
9 unsigned int nlmsvc_users;
Stanislav Kinsbursky3cf7fb02012-07-25 16:56:11 +040010 unsigned long next_gc;
Stanislav Kinsburskycaa4e762012-07-25 16:56:19 +040011 unsigned long nrhosts;
Stanislav Kinsbursky66547b02012-07-25 16:56:43 +040012
13 struct delayed_work grace_period_end;
Stanislav Kinsbursky08d44a32012-07-25 16:56:50 +040014 struct lock_manager lockd_manager;
Stanislav Kinsburskye9406db2012-09-18 13:37:12 +040015
Andrey Ryabinin0ad95472015-09-23 15:49:29 +030016 struct list_head nsm_handles;
Stanislav Kinsburskya9c5d732012-01-31 15:07:57 +040017};
18
Alexey Dobriyanc7d03a02016-11-17 04:58:21 +030019extern unsigned int lockd_net_id;
Stanislav Kinsburskya9c5d732012-01-31 15:07:57 +040020
21#endif