blob: fb8cac88251ae64da116b8390826118c3eb1c81c [file] [log] [blame]
Stanislav Kinsburskya9c5d732012-01-31 15:07:57 +04001#ifndef __LOCKD_NETNS_H__
2#define __LOCKD_NETNS_H__
3
Stanislav Kinsbursky08d44a32012-07-25 16:56:50 +04004#include <linux/fs.h>
Stanislav Kinsburskya9c5d732012-01-31 15:07:57 +04005#include <net/netns/generic.h>
6
7struct lockd_net {
8 unsigned int nlmsvc_users;
Stanislav Kinsbursky3cf7fb02012-07-25 16:56:11 +04009 unsigned long next_gc;
Stanislav Kinsburskycaa4e762012-07-25 16:56:19 +040010 unsigned long nrhosts;
Stanislav Kinsbursky66547b02012-07-25 16:56:43 +040011
12 struct delayed_work grace_period_end;
Stanislav Kinsbursky08d44a32012-07-25 16:56:50 +040013 struct lock_manager lockd_manager;
Stanislav Kinsburskye9406db2012-09-18 13:37:12 +040014
Andrey Ryabinin0ad95472015-09-23 15:49:29 +030015 struct list_head nsm_handles;
Stanislav Kinsburskya9c5d732012-01-31 15:07:57 +040016};
17
Alexey Dobriyanc7d03a02016-11-17 04:58:21 +030018extern unsigned int lockd_net_id;
Stanislav Kinsburskya9c5d732012-01-31 15:07:57 +040019
20#endif