summaryrefslogtreecommitdiff
path: root/fs/lockd/netns.h
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-07-25 16:56:19 +0400
committerJ. Bruce Fields <bfields@redhat.com>2012-07-28 00:48:43 +0400
commitcaa4e76b6f284bab535a98fd37b9c46856158bcb (patch)
tree8f627e46f3dce4257dd3fe261c53e1fd2d915673 /fs/lockd/netns.h
parent3cf7fb07e077e599d8343113cf4ef81adb2ca627 (diff)
downloadlinux-caa4e76b6f284bab535a98fd37b9c46856158bcb.tar.xz
LockD: manage used host count per networks namespace
This patch introduces moves nrhosts in per-net data. It also adds kernel warning to nlm_shutdown_hosts_net() about remaining hosts in specified network namespace context. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/lockd/netns.h')
-rw-r--r--fs/lockd/netns.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/lockd/netns.h b/fs/lockd/netns.h
index 97c6c771133f..44c8f0b9230a 100644
--- a/fs/lockd/netns.h
+++ b/fs/lockd/netns.h
@@ -6,6 +6,7 @@
struct lockd_net {
unsigned int nlmsvc_users;
unsigned long next_gc;
+ unsigned long nrhosts;
};
extern int lockd_net_id;