summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/netns.h
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-11-14 16:21:31 +0100
committerJ. Bruce Fields <bfields@redhat.com>2012-11-15 13:40:45 +0100
commit0a7ec37727dcc3293cd4c9958b25c43f3a797d47 (patch)
tree396517a26f3363dd9bab053f82ae556d77a8cc00 /fs/nfsd/netns.h
parentnfsd: make conf_name_tree per net (diff)
downloadlinux-0a7ec37727dcc3293cd4c9958b25c43f3a797d47.tar.xz
linux-0a7ec37727dcc3293cd4c9958b25c43f3a797d47.zip
nfsd: make unconf_id_hashtbl allocated per net
This hash holds nfs4_clients info, which are network namespace aware. So let's make it allocated per network namespace. 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 afd911638464..1ff781f9c3d0 100644
--- a/fs/nfsd/netns.h
+++ b/fs/nfsd/netns.h
@@ -55,6 +55,7 @@ struct nfsd_net {
int reclaim_str_hashtbl_size;
struct list_head *conf_id_hashtbl;
struct rb_root conf_name_tree;
+ struct list_head *unconf_id_hashtbl;
};
extern int nfsd_net_id;