aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/sunrpc_syms.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/sunrpc_syms.c')
-rw-r--r--net/sunrpc/sunrpc_syms.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c
index d85fddeb6388..43ecf62f12ef 100644
--- a/net/sunrpc/sunrpc_syms.c
+++ b/net/sunrpc/sunrpc_syms.c
@@ -9,7 +9,6 @@
9#include <linux/module.h> 9#include <linux/module.h>
10 10
11#include <linux/types.h> 11#include <linux/types.h>
12#include <linux/sched.h>
13#include <linux/uio.h> 12#include <linux/uio.h>
14#include <linux/unistd.h> 13#include <linux/unistd.h>
15#include <linux/init.h> 14#include <linux/init.h>
@@ -137,7 +136,7 @@ EXPORT_SYMBOL(nlm_debug);
137 136
138extern int register_rpc_pipefs(void); 137extern int register_rpc_pipefs(void);
139extern void unregister_rpc_pipefs(void); 138extern void unregister_rpc_pipefs(void);
140extern struct cache_detail ip_map_cache; 139extern struct cache_detail ip_map_cache, unix_gid_cache;
141extern int init_socket_xprt(void); 140extern int init_socket_xprt(void);
142extern void cleanup_socket_xprt(void); 141extern void cleanup_socket_xprt(void);
143 142
@@ -157,6 +156,7 @@ init_sunrpc(void)
157 rpc_proc_init(); 156 rpc_proc_init();
158#endif 157#endif
159 cache_register(&ip_map_cache); 158 cache_register(&ip_map_cache);
159 cache_register(&unix_gid_cache);
160 init_socket_xprt(); 160 init_socket_xprt();
161out: 161out:
162 return err; 162 return err;
@@ -170,6 +170,8 @@ cleanup_sunrpc(void)
170 rpc_destroy_mempool(); 170 rpc_destroy_mempool();
171 if (cache_unregister(&ip_map_cache)) 171 if (cache_unregister(&ip_map_cache))
172 printk(KERN_ERR "sunrpc: failed to unregister ip_map cache\n"); 172 printk(KERN_ERR "sunrpc: failed to unregister ip_map cache\n");
173 if (cache_unregister(&unix_gid_cache))
174 printk(KERN_ERR "sunrpc: failed to unregister unix_gid cache\n");
173#ifdef RPC_DEBUG 175#ifdef RPC_DEBUG
174 rpc_unregister_sysctl(); 176 rpc_unregister_sysctl();
175#endif 177#endif