diff options
| author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-01-19 12:42:53 -0500 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-31 19:28:16 -0500 |
| commit | 2c5f846747526e2b83c5f1b8e69016be0e2e87c0 (patch) | |
| tree | 730240d3ab15aaaee9e45cbb351f637e4ad122f4 | |
| parent | d05cc10406893dec65b8e89746e7d4c333935415 (diff) | |
SUNRPC: generic cache register routines removed
All cache users now uses network-namespace-aware routines, so generic ones
are obsolete.
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: J. Bruce Fields <bfields@redhat.com>
| -rw-r--r-- | include/linux/sunrpc/cache.h | 2 | ||||
| -rw-r--r-- | net/sunrpc/cache.c | 12 |
2 files changed, 0 insertions, 14 deletions
diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 259381ca811b..f5fd6160dbca 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h | |||
| @@ -198,9 +198,7 @@ extern void cache_flush(void); | |||
| 198 | extern void cache_purge(struct cache_detail *detail); | 198 | extern void cache_purge(struct cache_detail *detail); |
| 199 | #define NEVER (0x7FFFFFFF) | 199 | #define NEVER (0x7FFFFFFF) |
| 200 | extern void __init cache_initialize(void); | 200 | extern void __init cache_initialize(void); |
| 201 | extern int cache_register(struct cache_detail *cd); | ||
| 202 | extern int cache_register_net(struct cache_detail *cd, struct net *net); | 201 | extern int cache_register_net(struct cache_detail *cd, struct net *net); |
| 203 | extern void cache_unregister(struct cache_detail *cd); | ||
| 204 | extern void cache_unregister_net(struct cache_detail *cd, struct net *net); | 202 | extern void cache_unregister_net(struct cache_detail *cd, struct net *net); |
| 205 | 203 | ||
| 206 | extern struct cache_detail *cache_create_net(struct cache_detail *tmpl, struct net *net); | 204 | extern struct cache_detail *cache_create_net(struct cache_detail *tmpl, struct net *net); |
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c index a450b8ac648b..f21ece088764 100644 --- a/net/sunrpc/cache.c +++ b/net/sunrpc/cache.c | |||
| @@ -1645,12 +1645,6 @@ int cache_register_net(struct cache_detail *cd, struct net *net) | |||
| 1645 | } | 1645 | } |
| 1646 | EXPORT_SYMBOL_GPL(cache_register_net); | 1646 | EXPORT_SYMBOL_GPL(cache_register_net); |
| 1647 | 1647 | ||
| 1648 | int cache_register(struct cache_detail *cd) | ||
| 1649 | { | ||
| 1650 | return cache_register_net(cd, &init_net); | ||
| 1651 | } | ||
| 1652 | EXPORT_SYMBOL_GPL(cache_register); | ||
| 1653 | |||
| 1654 | void cache_unregister_net(struct cache_detail *cd, struct net *net) | 1648 | void cache_unregister_net(struct cache_detail *cd, struct net *net) |
| 1655 | { | 1649 | { |
| 1656 | remove_cache_proc_entries(cd, net); | 1650 | remove_cache_proc_entries(cd, net); |
| @@ -1658,12 +1652,6 @@ void cache_unregister_net(struct cache_detail *cd, struct net *net) | |||
| 1658 | } | 1652 | } |
| 1659 | EXPORT_SYMBOL_GPL(cache_unregister_net); | 1653 | EXPORT_SYMBOL_GPL(cache_unregister_net); |
| 1660 | 1654 | ||
| 1661 | void cache_unregister(struct cache_detail *cd) | ||
| 1662 | { | ||
| 1663 | cache_unregister_net(cd, &init_net); | ||
| 1664 | } | ||
| 1665 | EXPORT_SYMBOL_GPL(cache_unregister); | ||
| 1666 | |||
| 1667 | struct cache_detail *cache_create_net(struct cache_detail *tmpl, struct net *net) | 1655 | struct cache_detail *cache_create_net(struct cache_detail *tmpl, struct net *net) |
| 1668 | { | 1656 | { |
| 1669 | struct cache_detail *cd; | 1657 | struct cache_detail *cd; |
