diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/arp.c | 2 | ||||
-rw-r--r-- | net/ipv4/fib_trie.c | 8 | ||||
-rw-r--r-- | net/ipv4/igmp.c | 5 | ||||
-rw-r--r-- | net/ipv4/ipconfig.c | 2 | ||||
-rw-r--r-- | net/ipv4/ipmr.c | 4 | ||||
-rw-r--r-- | net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c | 6 | ||||
-rw-r--r-- | net/ipv4/ping.c | 2 | ||||
-rw-r--r-- | net/ipv4/proc.c | 7 | ||||
-rw-r--r-- | net/ipv4/raw.c | 2 | ||||
-rw-r--r-- | net/ipv4/route.c | 4 | ||||
-rw-r--r-- | net/ipv4/tcp_probe.c | 2 |
11 files changed, 23 insertions, 21 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index ded146b217f1..b04c114ef055 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
@@ -1405,7 +1405,7 @@ static const struct file_operations arp_seq_fops = { | |||
1405 | 1405 | ||
1406 | static int __net_init arp_net_init(struct net *net) | 1406 | static int __net_init arp_net_init(struct net *net) |
1407 | { | 1407 | { |
1408 | if (!proc_net_fops_create(net, "arp", S_IRUGO, &arp_seq_fops)) | 1408 | if (!proc_create("arp", S_IRUGO, net->proc_net, &arp_seq_fops)) |
1409 | return -ENOMEM; | 1409 | return -ENOMEM; |
1410 | return 0; | 1410 | return 0; |
1411 | } | 1411 | } |
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 31d771ca9a70..67c1d4b641d4 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
@@ -2607,14 +2607,14 @@ static const struct file_operations fib_route_fops = { | |||
2607 | 2607 | ||
2608 | int __net_init fib_proc_init(struct net *net) | 2608 | int __net_init fib_proc_init(struct net *net) |
2609 | { | 2609 | { |
2610 | if (!proc_net_fops_create(net, "fib_trie", S_IRUGO, &fib_trie_fops)) | 2610 | if (!proc_create("fib_trie", S_IRUGO, net->proc_net, &fib_trie_fops)) |
2611 | goto out1; | 2611 | goto out1; |
2612 | 2612 | ||
2613 | if (!proc_net_fops_create(net, "fib_triestat", S_IRUGO, | 2613 | if (!proc_create("fib_triestat", S_IRUGO, net->proc_net, |
2614 | &fib_triestat_fops)) | 2614 | &fib_triestat_fops)) |
2615 | goto out2; | 2615 | goto out2; |
2616 | 2616 | ||
2617 | if (!proc_net_fops_create(net, "route", S_IRUGO, &fib_route_fops)) | 2617 | if (!proc_create("route", S_IRUGO, net->proc_net, &fib_route_fops)) |
2618 | goto out3; | 2618 | goto out3; |
2619 | 2619 | ||
2620 | return 0; | 2620 | return 0; |
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 736ab70fd179..be85628e6a83 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c | |||
@@ -2646,10 +2646,11 @@ static int __net_init igmp_net_init(struct net *net) | |||
2646 | { | 2646 | { |
2647 | struct proc_dir_entry *pde; | 2647 | struct proc_dir_entry *pde; |
2648 | 2648 | ||
2649 | pde = proc_net_fops_create(net, "igmp", S_IRUGO, &igmp_mc_seq_fops); | 2649 | pde = proc_create("igmp", S_IRUGO, net->proc_net, &igmp_mc_seq_fops); |
2650 | if (!pde) | 2650 | if (!pde) |
2651 | goto out_igmp; | 2651 | goto out_igmp; |
2652 | pde = proc_net_fops_create(net, "mcfilter", S_IRUGO, &igmp_mcf_seq_fops); | 2652 | pde = proc_create("mcfilter", S_IRUGO, net->proc_net, |
2653 | &igmp_mcf_seq_fops); | ||
2653 | if (!pde) | 2654 | if (!pde) |
2654 | goto out_mcfilter; | 2655 | goto out_mcfilter; |
2655 | return 0; | 2656 | return 0; |
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index a2e50ae80b53..98cbc6877019 100644 --- a/net/ipv4/ipconfig.c +++ b/net/ipv4/ipconfig.c | |||
@@ -1394,7 +1394,7 @@ static int __init ip_auto_config(void) | |||
1394 | unsigned int i; | 1394 | unsigned int i; |
1395 | 1395 | ||
1396 | #ifdef CONFIG_PROC_FS | 1396 | #ifdef CONFIG_PROC_FS |
1397 | proc_net_fops_create(&init_net, "pnp", S_IRUGO, &pnp_seq_fops); | 1397 | proc_create("pnp", S_IRUGO, init_net.proc_net, &pnp_seq_fops); |
1398 | #endif /* CONFIG_PROC_FS */ | 1398 | #endif /* CONFIG_PROC_FS */ |
1399 | 1399 | ||
1400 | if (!ic_enable) | 1400 | if (!ic_enable) |
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index 7085b9b51e7f..160a8b8e9cae 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c | |||
@@ -2703,9 +2703,9 @@ static int __net_init ipmr_net_init(struct net *net) | |||
2703 | 2703 | ||
2704 | #ifdef CONFIG_PROC_FS | 2704 | #ifdef CONFIG_PROC_FS |
2705 | err = -ENOMEM; | 2705 | err = -ENOMEM; |
2706 | if (!proc_net_fops_create(net, "ip_mr_vif", 0, &ipmr_vif_fops)) | 2706 | if (!proc_create("ip_mr_vif", 0, net->proc_net, &ipmr_vif_fops)) |
2707 | goto proc_vif_fail; | 2707 | goto proc_vif_fail; |
2708 | if (!proc_net_fops_create(net, "ip_mr_cache", 0, &ipmr_mfc_fops)) | 2708 | if (!proc_create("ip_mr_cache", 0, net->proc_net, &ipmr_mfc_fops)) |
2709 | goto proc_cache_fail; | 2709 | goto proc_cache_fail; |
2710 | #endif | 2710 | #endif |
2711 | return 0; | 2711 | return 0; |
diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c index 9682b36df38c..48bc681f5d32 100644 --- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c +++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c | |||
@@ -417,12 +417,12 @@ static int __net_init ip_conntrack_net_init(struct net *net) | |||
417 | { | 417 | { |
418 | struct proc_dir_entry *proc, *proc_exp, *proc_stat; | 418 | struct proc_dir_entry *proc, *proc_exp, *proc_stat; |
419 | 419 | ||
420 | proc = proc_net_fops_create(net, "ip_conntrack", 0440, &ct_file_ops); | 420 | proc = proc_create("ip_conntrack", 0440, net->proc_net, &ct_file_ops); |
421 | if (!proc) | 421 | if (!proc) |
422 | goto err1; | 422 | goto err1; |
423 | 423 | ||
424 | proc_exp = proc_net_fops_create(net, "ip_conntrack_expect", 0440, | 424 | proc_exp = proc_create("ip_conntrack_expect", 0440, net->proc_net, |
425 | &ip_exp_file_ops); | 425 | &ip_exp_file_ops); |
426 | if (!proc_exp) | 426 | if (!proc_exp) |
427 | goto err2; | 427 | goto err2; |
428 | 428 | ||
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index 6f9c07268cf6..fc62a13b5eef 100644 --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c | |||
@@ -889,7 +889,7 @@ static int ping_proc_register(struct net *net) | |||
889 | struct proc_dir_entry *p; | 889 | struct proc_dir_entry *p; |
890 | int rc = 0; | 890 | int rc = 0; |
891 | 891 | ||
892 | p = proc_net_fops_create(net, "icmp", S_IRUGO, &ping_seq_fops); | 892 | p = proc_create("icmp", S_IRUGO, net->proc_net, &ping_seq_fops); |
893 | if (!p) | 893 | if (!p) |
894 | rc = -ENOMEM; | 894 | rc = -ENOMEM; |
895 | return rc; | 895 | return rc; |
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index 8de53e1ddd54..954bcd42d50e 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c | |||
@@ -471,11 +471,12 @@ static const struct file_operations netstat_seq_fops = { | |||
471 | 471 | ||
472 | static __net_init int ip_proc_init_net(struct net *net) | 472 | static __net_init int ip_proc_init_net(struct net *net) |
473 | { | 473 | { |
474 | if (!proc_net_fops_create(net, "sockstat", S_IRUGO, &sockstat_seq_fops)) | 474 | if (!proc_create("sockstat", S_IRUGO, net->proc_net, |
475 | &sockstat_seq_fops)) | ||
475 | goto out_sockstat; | 476 | goto out_sockstat; |
476 | if (!proc_net_fops_create(net, "netstat", S_IRUGO, &netstat_seq_fops)) | 477 | if (!proc_create("netstat", S_IRUGO, net->proc_net, &netstat_seq_fops)) |
477 | goto out_netstat; | 478 | goto out_netstat; |
478 | if (!proc_net_fops_create(net, "snmp", S_IRUGO, &snmp_seq_fops)) | 479 | if (!proc_create("snmp", S_IRUGO, net->proc_net, &snmp_seq_fops)) |
479 | goto out_snmp; | 480 | goto out_snmp; |
480 | 481 | ||
481 | return 0; | 482 | return 0; |
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index 6f08991409c3..5043a7d0c64e 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c | |||
@@ -1050,7 +1050,7 @@ static const struct file_operations raw_seq_fops = { | |||
1050 | 1050 | ||
1051 | static __net_init int raw_init_net(struct net *net) | 1051 | static __net_init int raw_init_net(struct net *net) |
1052 | { | 1052 | { |
1053 | if (!proc_net_fops_create(net, "raw", S_IRUGO, &raw_seq_fops)) | 1053 | if (!proc_create("raw", S_IRUGO, net->proc_net, &raw_seq_fops)) |
1054 | return -ENOMEM; | 1054 | return -ENOMEM; |
1055 | 1055 | ||
1056 | return 0; | 1056 | return 0; |
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index a0fcc47fee73..3bdd1b1ad1b3 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -384,8 +384,8 @@ static int __net_init ip_rt_do_proc_init(struct net *net) | |||
384 | { | 384 | { |
385 | struct proc_dir_entry *pde; | 385 | struct proc_dir_entry *pde; |
386 | 386 | ||
387 | pde = proc_net_fops_create(net, "rt_cache", S_IRUGO, | 387 | pde = proc_create("rt_cache", S_IRUGO, net->proc_net, |
388 | &rt_cache_seq_fops); | 388 | &rt_cache_seq_fops); |
389 | if (!pde) | 389 | if (!pde) |
390 | goto err1; | 390 | goto err1; |
391 | 391 | ||
diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c index 4526fe68e60e..1e3a1fb3c0cd 100644 --- a/net/ipv4/tcp_probe.c +++ b/net/ipv4/tcp_probe.c | |||
@@ -234,7 +234,7 @@ static __init int tcpprobe_init(void) | |||
234 | if (!tcp_probe.log) | 234 | if (!tcp_probe.log) |
235 | goto err0; | 235 | goto err0; |
236 | 236 | ||
237 | if (!proc_net_fops_create(&init_net, procname, S_IRUSR, &tcpprobe_fops)) | 237 | if (!proc_create(procname, S_IRUSR, init_net.proc_net, &tcpprobe_fops)) |
238 | goto err0; | 238 | goto err0; |
239 | 239 | ||
240 | ret = register_jprobe(&tcp_jprobe); | 240 | ret = register_jprobe(&tcp_jprobe); |