diff options
Diffstat (limited to 'net/sunrpc/sunrpc_syms.c')
-rw-r--r-- | net/sunrpc/sunrpc_syms.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/net/sunrpc/sunrpc_syms.c b/net/sunrpc/sunrpc_syms.c index faa23229bd25..c076af8535db 100644 --- a/net/sunrpc/sunrpc_syms.c +++ b/net/sunrpc/sunrpc_syms.c | |||
@@ -28,11 +28,21 @@ int sunrpc_net_id; | |||
28 | 28 | ||
29 | static __net_init int sunrpc_init_net(struct net *net) | 29 | static __net_init int sunrpc_init_net(struct net *net) |
30 | { | 30 | { |
31 | int err; | ||
32 | |||
33 | err = rpc_proc_init(net); | ||
34 | if (err) | ||
35 | goto err_proc; | ||
36 | |||
31 | return 0; | 37 | return 0; |
38 | |||
39 | err_proc: | ||
40 | return err; | ||
32 | } | 41 | } |
33 | 42 | ||
34 | static __net_exit void sunrpc_exit_net(struct net *net) | 43 | static __net_exit void sunrpc_exit_net(struct net *net) |
35 | { | 44 | { |
45 | rpc_proc_exit(net); | ||
36 | } | 46 | } |
37 | 47 | ||
38 | static struct pernet_operations sunrpc_net_ops = { | 48 | static struct pernet_operations sunrpc_net_ops = { |
@@ -67,9 +77,6 @@ init_sunrpc(void) | |||
67 | #ifdef RPC_DEBUG | 77 | #ifdef RPC_DEBUG |
68 | rpc_register_sysctl(); | 78 | rpc_register_sysctl(); |
69 | #endif | 79 | #endif |
70 | #ifdef CONFIG_PROC_FS | ||
71 | rpc_proc_init(); | ||
72 | #endif | ||
73 | cache_register(&ip_map_cache); | 80 | cache_register(&ip_map_cache); |
74 | cache_register(&unix_gid_cache); | 81 | cache_register(&unix_gid_cache); |
75 | svc_init_xprt_sock(); /* svc sock transport */ | 82 | svc_init_xprt_sock(); /* svc sock transport */ |
@@ -101,9 +108,6 @@ cleanup_sunrpc(void) | |||
101 | #ifdef RPC_DEBUG | 108 | #ifdef RPC_DEBUG |
102 | rpc_unregister_sysctl(); | 109 | rpc_unregister_sysctl(); |
103 | #endif | 110 | #endif |
104 | #ifdef CONFIG_PROC_FS | ||
105 | rpc_proc_exit(); | ||
106 | #endif | ||
107 | rcu_barrier(); /* Wait for completion of call_rcu()'s */ | 111 | rcu_barrier(); /* Wait for completion of call_rcu()'s */ |
108 | } | 112 | } |
109 | MODULE_LICENSE("GPL"); | 113 | MODULE_LICENSE("GPL"); |