aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/netns.h
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-11-14 10:21:41 -0500
committerJ. Bruce Fields <bfields@redhat.com>2012-11-15 07:40:46 -0500
commit9b5311374057e5c87017ea3756e566047c9b61e7 (patch)
tree3cde40f55baf51b9cc29ac60a8a28bff3d94a7ef /fs/nfsd/netns.h
parenta99454aa4ff1241a19dcb486fa302d3e8cc09e5b (diff)
nfsd: make ownerstr_hashtbl allocated per net
This hash holds open owner state and closely associated with nfs4_clients info, which are network namespace aware. So let's make it allocated per network namespace too. Note: this hash can be allocated in per-net operations. But it looks better to allocate it on nfsd state start and thus don't waste resources if server is not running. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/netns.h')
-rw-r--r--fs/nfsd/netns.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/netns.h b/fs/nfsd/netns.h
index 1e76030e1d16..46cca9494c7a 100644
--- a/fs/nfsd/netns.h
+++ b/fs/nfsd/netns.h
@@ -60,6 +60,7 @@ struct nfsd_net {
60 struct rb_root conf_name_tree; 60 struct rb_root conf_name_tree;
61 struct list_head *unconf_id_hashtbl; 61 struct list_head *unconf_id_hashtbl;
62 struct rb_root unconf_name_tree; 62 struct rb_root unconf_name_tree;
63 struct list_head *ownerstr_hashtbl;
63}; 64};
64 65
65extern int nfsd_net_id; 66extern int nfsd_net_id;