diff options
author | Gao feng <gaofeng@cn.fujitsu.com> | 2013-02-17 20:34:54 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-18 14:53:08 -0500 |
commit | d4beaa66add8aebf83ab16d2fde4e4de8dac36df (patch) | |
tree | 87e69803c16904077d04c212d7b58acbfa62d143 /net/ipv6 | |
parent | 510a1e7249298f6bbd049e1ec98041ddf5ef6452 (diff) |
net: proc: change proc_net_fops_create to proc_create
Right now, some modules such as bonding use proc_create
to create proc entries under /proc/net/, and other modules
such as ipv4 use proc_net_fops_create.
It looks a little chaos.this patch changes all of
proc_net_fops_create to proc_create. we can remove
proc_net_fops_create 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 | 4 | ||||
-rw-r--r-- | net/ipv6/ip6mr.c | 4 | ||||
-rw-r--r-- | net/ipv6/mcast.c | 6 | ||||
-rw-r--r-- | net/ipv6/proc.c | 6 | ||||
-rw-r--r-- | net/ipv6/raw.c | 2 | ||||
-rw-r--r-- | net/ipv6/route.c | 4 |
8 files changed, 15 insertions, 15 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 86c235d05aba..bad71083db86 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -3325,7 +3325,7 @@ static const struct file_operations if6_fops = { | |||
3325 | 3325 | ||
3326 | static int __net_init if6_proc_net_init(struct net *net) | 3326 | static int __net_init if6_proc_net_init(struct net *net) |
3327 | { | 3327 | { |
3328 | if (!proc_net_fops_create(net, "if_inet6", S_IRUGO, &if6_fops)) | 3328 | if (!proc_create("if_inet6", S_IRUGO, net->proc_net, &if6_fops)) |
3329 | return -ENOMEM; | 3329 | return -ENOMEM; |
3330 | return 0; | 3330 | return 0; |
3331 | } | 3331 | } |
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c index 921b8b398a8c..5a8c00983de5 100644 --- a/net/ipv6/anycast.c +++ b/net/ipv6/anycast.c | |||
@@ -509,7 +509,7 @@ static const struct file_operations ac6_seq_fops = { | |||
509 | 509 | ||
510 | int __net_init ac6_proc_init(struct net *net) | 510 | int __net_init ac6_proc_init(struct net *net) |
511 | { | 511 | { |
512 | if (!proc_net_fops_create(net, "anycast6", S_IRUGO, &ac6_seq_fops)) | 512 | if (!proc_create("anycast6", S_IRUGO, net->proc_net, &ac6_seq_fops)) |
513 | return -ENOMEM; | 513 | return -ENOMEM; |
514 | 514 | ||
515 | return 0; | 515 | return 0; |
diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c index a7da2f472479..900d79eda51e 100644 --- a/net/ipv6/ip6_flowlabel.c +++ b/net/ipv6/ip6_flowlabel.c | |||
@@ -806,8 +806,8 @@ static const struct file_operations ip6fl_seq_fops = { | |||
806 | 806 | ||
807 | static int __net_init ip6_flowlabel_proc_init(struct net *net) | 807 | static int __net_init ip6_flowlabel_proc_init(struct net *net) |
808 | { | 808 | { |
809 | if (!proc_net_fops_create(net, "ip6_flowlabel", | 809 | if (!proc_create("ip6_flowlabel", S_IRUGO, net->proc_net, |
810 | S_IRUGO, &ip6fl_seq_fops)) | 810 | &ip6fl_seq_fops)) |
811 | return -ENOMEM; | 811 | return -ENOMEM; |
812 | return 0; | 812 | return 0; |
813 | } | 813 | } |
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index 351ce98e90d9..fdfd96d288ed 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c | |||
@@ -1359,9 +1359,9 @@ static int __net_init ip6mr_net_init(struct net *net) | |||
1359 | 1359 | ||
1360 | #ifdef CONFIG_PROC_FS | 1360 | #ifdef CONFIG_PROC_FS |
1361 | err = -ENOMEM; | 1361 | err = -ENOMEM; |
1362 | if (!proc_net_fops_create(net, "ip6_mr_vif", 0, &ip6mr_vif_fops)) | 1362 | if (!proc_create("ip6_mr_vif", 0, net->proc_net, &ip6mr_vif_fops)) |
1363 | goto proc_vif_fail; | 1363 | goto proc_vif_fail; |
1364 | if (!proc_net_fops_create(net, "ip6_mr_cache", 0, &ip6mr_mfc_fops)) | 1364 | if (!proc_create("ip6_mr_cache", 0, net->proc_net, &ip6mr_mfc_fops)) |
1365 | goto proc_cache_fail; | 1365 | goto proc_cache_fail; |
1366 | #endif | 1366 | #endif |
1367 | 1367 | ||
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index 3a2849f660ca..de7d4b9a58b0 100644 --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c | |||
@@ -2599,10 +2599,10 @@ static int __net_init igmp6_proc_init(struct net *net) | |||
2599 | int err; | 2599 | int err; |
2600 | 2600 | ||
2601 | err = -ENOMEM; | 2601 | err = -ENOMEM; |
2602 | if (!proc_net_fops_create(net, "igmp6", S_IRUGO, &igmp6_mc_seq_fops)) | 2602 | if (!proc_create("igmp6", S_IRUGO, net->proc_net, &igmp6_mc_seq_fops)) |
2603 | goto out; | 2603 | goto out; |
2604 | if (!proc_net_fops_create(net, "mcfilter6", S_IRUGO, | 2604 | if (!proc_create("mcfilter6", S_IRUGO, net->proc_net, |
2605 | &igmp6_mcf_seq_fops)) | 2605 | &igmp6_mcf_seq_fops)) |
2606 | goto out_proc_net_igmp6; | 2606 | goto out_proc_net_igmp6; |
2607 | 2607 | ||
2608 | err = 0; | 2608 | err = 0; |
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index 745a32042950..cf8901dc653e 100644 --- a/net/ipv6/proc.c +++ b/net/ipv6/proc.c | |||
@@ -295,11 +295,11 @@ int snmp6_unregister_dev(struct inet6_dev *idev) | |||
295 | 295 | ||
296 | static int __net_init ipv6_proc_init_net(struct net *net) | 296 | static int __net_init ipv6_proc_init_net(struct net *net) |
297 | { | 297 | { |
298 | if (!proc_net_fops_create(net, "sockstat6", S_IRUGO, | 298 | if (!proc_create("sockstat6", S_IRUGO, net->proc_net, |
299 | &sockstat6_seq_fops)) | 299 | &sockstat6_seq_fops)) |
300 | return -ENOMEM; | 300 | return -ENOMEM; |
301 | 301 | ||
302 | if (!proc_net_fops_create(net, "snmp6", S_IRUGO, &snmp6_seq_fops)) | 302 | if (!proc_create("snmp6", S_IRUGO, net->proc_net, &snmp6_seq_fops)) |
303 | goto proc_snmp6_fail; | 303 | goto proc_snmp6_fail; |
304 | 304 | ||
305 | net->mib.proc_net_devsnmp6 = proc_mkdir("dev_snmp6", net->proc_net); | 305 | net->mib.proc_net_devsnmp6 = proc_mkdir("dev_snmp6", net->proc_net); |
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index 70fa81449997..ff42fb309eec 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c | |||
@@ -1292,7 +1292,7 @@ static const struct file_operations raw6_seq_fops = { | |||
1292 | 1292 | ||
1293 | static int __net_init raw6_init_net(struct net *net) | 1293 | static int __net_init raw6_init_net(struct net *net) |
1294 | { | 1294 | { |
1295 | if (!proc_net_fops_create(net, "raw6", S_IRUGO, &raw6_seq_fops)) | 1295 | if (!proc_create("raw6", S_IRUGO, net->proc_net, &raw6_seq_fops)) |
1296 | return -ENOMEM; | 1296 | return -ENOMEM; |
1297 | 1297 | ||
1298 | return 0; | 1298 | return 0; |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index f3328bc1174f..e1228d839ebf 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -2995,8 +2995,8 @@ static void __net_exit ip6_route_net_exit(struct net *net) | |||
2995 | static int __net_init ip6_route_net_init_late(struct net *net) | 2995 | static int __net_init ip6_route_net_init_late(struct net *net) |
2996 | { | 2996 | { |
2997 | #ifdef CONFIG_PROC_FS | 2997 | #ifdef CONFIG_PROC_FS |
2998 | proc_net_fops_create(net, "ipv6_route", 0, &ipv6_route_proc_fops); | 2998 | proc_create("ipv6_route", 0, net->proc_net, &ipv6_route_proc_fops); |
2999 | proc_net_fops_create(net, "rt6_stats", S_IRUGO, &rt6_stats_seq_fops); | 2999 | proc_create("rt6_stats", S_IRUGO, net->proc_net, &rt6_stats_seq_fops); |
3000 | #endif | 3000 | #endif |
3001 | return 0; | 3001 | return 0; |
3002 | } | 3002 | } |