diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2013-02-17 20:34:56 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-18 14:53:08 -0500 |
commit | ece31ffd539e8e2b586b1ca5f50bc4f4591e3893 (patch) | |
tree | 05407d915a4c0be78a4aa85f54ae3b148ec91ea3 /net/ipv6 | |
parent | b4278c961aca320839964e23cfc7906ff61af0c2 (diff) |
net: proc: change proc_net_remove to remove_proc_entry
proc_net_remove is only used to remove proc entries
that under /proc/net,it's not a general function for
removing proc entries of netns. if we want to remove
some proc entries which under /proc/net/stat/, we still
need to call remove_proc_entry.
this patch use remove_proc_entry to replace proc_net_remove.
we can remove proc_net_remove after this patch.
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/addrconf.c | 2 | ||||
-rw-r--r-- | net/ipv6/anycast.c | 2 | ||||
-rw-r--r-- | net/ipv6/ip6_flowlabel.c | 2 | ||||
-rw-r--r-- | net/ipv6/ip6mr.c | 6 | ||||
-rw-r--r-- | net/ipv6/mcast.c | 6 | ||||
-rw-r--r-- | net/ipv6/proc.c | 10 | ||||
-rw-r--r-- | net/ipv6/raw.c | 2 | ||||
-rw-r--r-- | net/ipv6/route.c | 4 |
8 files changed, 17 insertions, 17 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index bad71083db86..4dc0d44a5d31 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -3332,7 +3332,7 @@ static int __net_init if6_proc_net_init(struct net *net) | |||
3332 | 3332 | ||
3333 | static void __net_exit if6_proc_net_exit(struct net *net) | 3333 | static void __net_exit if6_proc_net_exit(struct net *net) |
3334 | { | 3334 | { |
3335 | proc_net_remove(net, "if_inet6"); | 3335 | remove_proc_entry("if_inet6", net->proc_net); |
3336 | } | 3336 | } |
3337 | 3337 | ||
3338 | static struct pernet_operations if6_proc_net_ops = { | 3338 | static struct pernet_operations if6_proc_net_ops = { |
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c index 5a8c00983de5..5a80f15a9de2 100644 --- a/net/ipv6/anycast.c +++ b/net/ipv6/anycast.c | |||
@@ -517,7 +517,7 @@ int __net_init ac6_proc_init(struct net *net) | |||
517 | 517 | ||
518 | void ac6_proc_exit(struct net *net) | 518 | void ac6_proc_exit(struct net *net) |
519 | { | 519 | { |
520 | proc_net_remove(net, "anycast6"); | 520 | remove_proc_entry("anycast6", net->proc_net); |
521 | } | 521 | } |
522 | #endif | 522 | #endif |
523 | 523 | ||
diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c index 900d79eda51e..b973ed3d06cf 100644 --- a/net/ipv6/ip6_flowlabel.c +++ b/net/ipv6/ip6_flowlabel.c | |||
@@ -814,7 +814,7 @@ static int __net_init ip6_flowlabel_proc_init(struct net *net) | |||
814 | 814 | ||
815 | static void __net_exit ip6_flowlabel_proc_fini(struct net *net) | 815 | static void __net_exit ip6_flowlabel_proc_fini(struct net *net) |
816 | { | 816 | { |
817 | proc_net_remove(net, "ip6_flowlabel"); | 817 | remove_proc_entry("ip6_flowlabel", net->proc_net); |
818 | } | 818 | } |
819 | #else | 819 | #else |
820 | static inline int ip6_flowlabel_proc_init(struct net *net) | 820 | static inline int ip6_flowlabel_proc_init(struct net *net) |
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index fdfd96d288ed..96bfb4e4b820 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c | |||
@@ -1369,7 +1369,7 @@ static int __net_init ip6mr_net_init(struct net *net) | |||
1369 | 1369 | ||
1370 | #ifdef CONFIG_PROC_FS | 1370 | #ifdef CONFIG_PROC_FS |
1371 | proc_cache_fail: | 1371 | proc_cache_fail: |
1372 | proc_net_remove(net, "ip6_mr_vif"); | 1372 | remove_proc_entry("ip6_mr_vif", net->proc_net); |
1373 | proc_vif_fail: | 1373 | proc_vif_fail: |
1374 | ip6mr_rules_exit(net); | 1374 | ip6mr_rules_exit(net); |
1375 | #endif | 1375 | #endif |
@@ -1380,8 +1380,8 @@ fail: | |||
1380 | static void __net_exit ip6mr_net_exit(struct net *net) | 1380 | static void __net_exit ip6mr_net_exit(struct net *net) |
1381 | { | 1381 | { |
1382 | #ifdef CONFIG_PROC_FS | 1382 | #ifdef CONFIG_PROC_FS |
1383 | proc_net_remove(net, "ip6_mr_cache"); | 1383 | remove_proc_entry("ip6_mr_cache", net->proc_net); |
1384 | proc_net_remove(net, "ip6_mr_vif"); | 1384 | remove_proc_entry("ip6_mr_vif", net->proc_net); |
1385 | #endif | 1385 | #endif |
1386 | ip6mr_rules_exit(net); | 1386 | ip6mr_rules_exit(net); |
1387 | } | 1387 | } |
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index de7d4b9a58b0..bfa6cc36ef2a 100644 --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c | |||
@@ -2610,14 +2610,14 @@ out: | |||
2610 | return err; | 2610 | return err; |
2611 | 2611 | ||
2612 | out_proc_net_igmp6: | 2612 | out_proc_net_igmp6: |
2613 | proc_net_remove(net, "igmp6"); | 2613 | remove_proc_entry("igmp6", net->proc_net); |
2614 | goto out; | 2614 | goto out; |
2615 | } | 2615 | } |
2616 | 2616 | ||
2617 | static void __net_exit igmp6_proc_exit(struct net *net) | 2617 | static void __net_exit igmp6_proc_exit(struct net *net) |
2618 | { | 2618 | { |
2619 | proc_net_remove(net, "mcfilter6"); | 2619 | remove_proc_entry("mcfilter6", net->proc_net); |
2620 | proc_net_remove(net, "igmp6"); | 2620 | remove_proc_entry("igmp6", net->proc_net); |
2621 | } | 2621 | } |
2622 | #else | 2622 | #else |
2623 | static inline int igmp6_proc_init(struct net *net) | 2623 | static inline int igmp6_proc_init(struct net *net) |
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index cf8901dc653e..bbbe53a99b57 100644 --- a/net/ipv6/proc.c +++ b/net/ipv6/proc.c | |||
@@ -308,17 +308,17 @@ static int __net_init ipv6_proc_init_net(struct net *net) | |||
308 | return 0; | 308 | return 0; |
309 | 309 | ||
310 | proc_dev_snmp6_fail: | 310 | proc_dev_snmp6_fail: |
311 | proc_net_remove(net, "snmp6"); | 311 | remove_proc_entry("snmp6", net->proc_net); |
312 | proc_snmp6_fail: | 312 | proc_snmp6_fail: |
313 | proc_net_remove(net, "sockstat6"); | 313 | remove_proc_entry("sockstat6", net->proc_net); |
314 | return -ENOMEM; | 314 | return -ENOMEM; |
315 | } | 315 | } |
316 | 316 | ||
317 | static void __net_exit ipv6_proc_exit_net(struct net *net) | 317 | static void __net_exit ipv6_proc_exit_net(struct net *net) |
318 | { | 318 | { |
319 | proc_net_remove(net, "sockstat6"); | 319 | remove_proc_entry("sockstat6", net->proc_net); |
320 | proc_net_remove(net, "dev_snmp6"); | 320 | remove_proc_entry("dev_snmp6", net->proc_net); |
321 | proc_net_remove(net, "snmp6"); | 321 | remove_proc_entry("snmp6", net->proc_net); |
322 | } | 322 | } |
323 | 323 | ||
324 | static struct pernet_operations ipv6_proc_ops = { | 324 | static struct pernet_operations ipv6_proc_ops = { |
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index ff42fb309eec..c65907db8c44 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c | |||
@@ -1300,7 +1300,7 @@ static int __net_init raw6_init_net(struct net *net) | |||
1300 | 1300 | ||
1301 | static void __net_exit raw6_exit_net(struct net *net) | 1301 | static void __net_exit raw6_exit_net(struct net *net) |
1302 | { | 1302 | { |
1303 | proc_net_remove(net, "raw6"); | 1303 | remove_proc_entry("raw6", net->proc_net); |
1304 | } | 1304 | } |
1305 | 1305 | ||
1306 | static struct pernet_operations raw6_net_ops = { | 1306 | static struct pernet_operations raw6_net_ops = { |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index e1228d839ebf..515bb51e05a8 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -3004,8 +3004,8 @@ static int __net_init ip6_route_net_init_late(struct net *net) | |||
3004 | static void __net_exit ip6_route_net_exit_late(struct net *net) | 3004 | static void __net_exit ip6_route_net_exit_late(struct net *net) |
3005 | { | 3005 | { |
3006 | #ifdef CONFIG_PROC_FS | 3006 | #ifdef CONFIG_PROC_FS |
3007 | proc_net_remove(net, "ipv6_route"); | 3007 | remove_proc_entry("ipv6_route", net->proc_net); |
3008 | proc_net_remove(net, "rt6_stats"); | 3008 | remove_proc_entry("rt6_stats", net->proc_net); |
3009 | #endif | 3009 | #endif |
3010 | } | 3010 | } |
3011 | 3011 | ||