diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2010-09-27 06:02:29 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-09-27 10:16:12 -0400 |
commit | 90d51b02fd702d969eb05bd9d4ecc954759fbe23 (patch) | |
tree | fb5409d3ed5844be89a284097a930e1ff5ea37de /net/sunrpc/netns.h | |
parent | 4f42d0d53ca4737f82937edb0efc83564c124853 (diff) |
sunrpc: Make the ip_map_cache be per-net
Everything that is required for that already exists:
* the per-net cache registration with respective proc entries
* the context (struct net) is available in all the users
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/netns.h')
-rw-r--r-- | net/sunrpc/netns.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/sunrpc/netns.h b/net/sunrpc/netns.h index e52ce897dde5..d013bf211cae 100644 --- a/net/sunrpc/netns.h +++ b/net/sunrpc/netns.h | |||
@@ -4,10 +4,16 @@ | |||
4 | #include <net/net_namespace.h> | 4 | #include <net/net_namespace.h> |
5 | #include <net/netns/generic.h> | 5 | #include <net/netns/generic.h> |
6 | 6 | ||
7 | struct cache_detail; | ||
8 | |||
7 | struct sunrpc_net { | 9 | struct sunrpc_net { |
8 | struct proc_dir_entry *proc_net_rpc; | 10 | struct proc_dir_entry *proc_net_rpc; |
11 | struct cache_detail *ip_map_cache; | ||
9 | }; | 12 | }; |
10 | 13 | ||
11 | extern int sunrpc_net_id; | 14 | extern int sunrpc_net_id; |
12 | 15 | ||
16 | int ip_map_cache_create(struct net *); | ||
17 | void ip_map_cache_destroy(struct net *); | ||
18 | |||
13 | #endif | 19 | #endif |