blob: 5426189406c17c233bfcd0e139db5e7921e412fb [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
18extern int lockd_net_id;
19
20#endif