blob: 097bfa3adb1c54a6402e5dabcfce7a3bc13b88a4 [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
15 spinlock_t nsm_clnt_lock;
16 unsigned int nsm_users;
17 struct rpc_clnt *nsm_clnt;
Stanislav Kinsburskya9c5d732012-01-31 15:07:57 +040018};
19
20extern int lockd_net_id;
21
22#endif