diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2010-09-27 12:02:29 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-09-27 16:16:12 +0200 |
commit | 90d51b02fd702d969eb05bd9d4ecc954759fbe23 (patch) | |
tree | fb5409d3ed5844be89a284097a930e1ff5ea37de /net/sunrpc/netns.h | |
parent | sunrpc: Make the /proc/net/rpc appear in net namespaces (diff) | |
download | linux-90d51b02fd702d969eb05bd9d4ecc954759fbe23.tar.xz linux-90d51b02fd702d969eb05bd9d4ecc954759fbe23.zip |
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 @@ #include <net/net_namespace.h> #include <net/netns/generic.h> +struct cache_detail; + struct sunrpc_net { struct proc_dir_entry *proc_net_rpc; + struct cache_detail *ip_map_cache; }; extern int sunrpc_net_id; +int ip_map_cache_create(struct net *); +void ip_map_cache_destroy(struct net *); + #endif |