diff options
52 files changed, 100 insertions, 86 deletions
diff --git a/drivers/connector/connector.c b/drivers/connector/connector.c index 7b695913cb30..ed17a57ab3cb 100644 --- a/drivers/connector/connector.c +++ b/drivers/connector/connector.c | |||
@@ -276,7 +276,7 @@ static int cn_init(void) | |||
276 | 276 | ||
277 | cn_already_initialized = 1; | 277 | cn_already_initialized = 1; |
278 | 278 | ||
279 | proc_net_fops_create(&init_net, "connector", S_IRUGO, &cn_file_ops); | 279 | proc_create("connector", S_IRUGO, init_net.proc_net, &cn_file_ops); |
280 | 280 | ||
281 | return 0; | 281 | return 0; |
282 | } | 282 | } |
diff --git a/drivers/net/hamradio/bpqether.c b/drivers/net/hamradio/bpqether.c index c2e5497397d5..61f28842163d 100644 --- a/drivers/net/hamradio/bpqether.c +++ b/drivers/net/hamradio/bpqether.c | |||
@@ -586,7 +586,8 @@ static int bpq_device_event(struct notifier_block *this,unsigned long event, voi | |||
586 | static int __init bpq_init_driver(void) | 586 | static int __init bpq_init_driver(void) |
587 | { | 587 | { |
588 | #ifdef CONFIG_PROC_FS | 588 | #ifdef CONFIG_PROC_FS |
589 | if (!proc_net_fops_create(&init_net, "bpqether", S_IRUGO, &bpq_info_fops)) { | 589 | if (!proc_create("bpqether", S_IRUGO, init_net.proc_net, |
590 | &bpq_info_fops)) { | ||
590 | printk(KERN_ERR | 591 | printk(KERN_ERR |
591 | "bpq: cannot create /proc/net/bpqether entry.\n"); | 592 | "bpq: cannot create /proc/net/bpqether entry.\n"); |
592 | return -ENOENT; | 593 | return -ENOENT; |
diff --git a/drivers/net/hamradio/scc.c b/drivers/net/hamradio/scc.c index 1b4a47bd32b7..cab13f4d2942 100644 --- a/drivers/net/hamradio/scc.c +++ b/drivers/net/hamradio/scc.c | |||
@@ -2118,7 +2118,7 @@ static int __init scc_init_driver (void) | |||
2118 | } | 2118 | } |
2119 | rtnl_unlock(); | 2119 | rtnl_unlock(); |
2120 | 2120 | ||
2121 | proc_net_fops_create(&init_net, "z8530drv", 0, &scc_net_seq_fops); | 2121 | proc_create("z8530drv", 0, init_net.proc_net, &scc_net_seq_fops); |
2122 | 2122 | ||
2123 | return 0; | 2123 | return 0; |
2124 | } | 2124 | } |
diff --git a/drivers/net/hamradio/yam.c b/drivers/net/hamradio/yam.c index c6645f1017af..92847d27b2e8 100644 --- a/drivers/net/hamradio/yam.c +++ b/drivers/net/hamradio/yam.c | |||
@@ -1167,7 +1167,7 @@ static int __init yam_init_driver(void) | |||
1167 | yam_timer.expires = jiffies + HZ / 100; | 1167 | yam_timer.expires = jiffies + HZ / 100; |
1168 | add_timer(&yam_timer); | 1168 | add_timer(&yam_timer); |
1169 | 1169 | ||
1170 | proc_net_fops_create(&init_net, "yam", S_IRUGO, &yam_info_fops); | 1170 | proc_create("yam", S_IRUGO, init_net.proc_net, &yam_info_fops); |
1171 | return 0; | 1171 | return 0; |
1172 | error: | 1172 | error: |
1173 | while (--i >= 0) { | 1173 | while (--i >= 0) { |
diff --git a/drivers/net/ppp/pppoe.c b/drivers/net/ppp/pppoe.c index 20f31d0d1536..d7fa96c42ae7 100644 --- a/drivers/net/ppp/pppoe.c +++ b/drivers/net/ppp/pppoe.c | |||
@@ -1134,7 +1134,7 @@ static __net_init int pppoe_init_net(struct net *net) | |||
1134 | 1134 | ||
1135 | rwlock_init(&pn->hash_lock); | 1135 | rwlock_init(&pn->hash_lock); |
1136 | 1136 | ||
1137 | pde = proc_net_fops_create(net, "pppoe", S_IRUGO, &pppoe_seq_fops); | 1137 | pde = proc_create("pppoe", S_IRUGO, net->proc_net, &pppoe_seq_fops); |
1138 | #ifdef CONFIG_PROC_FS | 1138 | #ifdef CONFIG_PROC_FS |
1139 | if (!pde) | 1139 | if (!pde) |
1140 | return -ENOMEM; | 1140 | return -ENOMEM; |
diff --git a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c index 779095ded689..b6ccbea3477e 100644 --- a/net/ax25/af_ax25.c +++ b/net/ax25/af_ax25.c | |||
@@ -1992,9 +1992,10 @@ static int __init ax25_init(void) | |||
1992 | dev_add_pack(&ax25_packet_type); | 1992 | dev_add_pack(&ax25_packet_type); |
1993 | register_netdevice_notifier(&ax25_dev_notifier); | 1993 | register_netdevice_notifier(&ax25_dev_notifier); |
1994 | 1994 | ||
1995 | proc_net_fops_create(&init_net, "ax25_route", S_IRUGO, &ax25_route_fops); | 1995 | proc_create("ax25_route", S_IRUGO, init_net.proc_net, |
1996 | proc_net_fops_create(&init_net, "ax25", S_IRUGO, &ax25_info_fops); | 1996 | &ax25_route_fops); |
1997 | proc_net_fops_create(&init_net, "ax25_calls", S_IRUGO, &ax25_uid_fops); | 1997 | proc_create("ax25", S_IRUGO, init_net.proc_net, &ax25_info_fops); |
1998 | proc_create("ax25_calls", S_IRUGO, init_net.proc_net, &ax25_uid_fops); | ||
1998 | out: | 1999 | out: |
1999 | return rc; | 2000 | return rc; |
2000 | } | 2001 | } |
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c index 5355df63d39b..8412b637407b 100644 --- a/net/bluetooth/af_bluetooth.c +++ b/net/bluetooth/af_bluetooth.c | |||
@@ -641,7 +641,7 @@ int bt_procfs_init(struct module* module, struct net *net, const char *name, | |||
641 | sk_list->fops.llseek = seq_lseek; | 641 | sk_list->fops.llseek = seq_lseek; |
642 | sk_list->fops.release = seq_release_private; | 642 | sk_list->fops.release = seq_release_private; |
643 | 643 | ||
644 | pde = proc_net_fops_create(net, name, 0, &sk_list->fops); | 644 | pde = proc_create(name, 0, net->proc_net, &sk_list->fops); |
645 | if (!pde) | 645 | if (!pde) |
646 | return -ENOMEM; | 646 | return -ENOMEM; |
647 | 647 | ||
diff --git a/net/core/dev.c b/net/core/dev.c index 1932d351ed7c..f2f81ef5bbd6 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -4518,11 +4518,12 @@ static int __net_init dev_proc_net_init(struct net *net) | |||
4518 | { | 4518 | { |
4519 | int rc = -ENOMEM; | 4519 | int rc = -ENOMEM; |
4520 | 4520 | ||
4521 | if (!proc_net_fops_create(net, "dev", S_IRUGO, &dev_seq_fops)) | 4521 | if (!proc_create("dev", S_IRUGO, net->proc_net, &dev_seq_fops)) |
4522 | goto out; | 4522 | goto out; |
4523 | if (!proc_net_fops_create(net, "softnet_stat", S_IRUGO, &softnet_seq_fops)) | 4523 | if (!proc_create("softnet_stat", S_IRUGO, net->proc_net, |
4524 | &softnet_seq_fops)) | ||
4524 | goto out_dev; | 4525 | goto out_dev; |
4525 | if (!proc_net_fops_create(net, "ptype", S_IRUGO, &ptype_seq_fops)) | 4526 | if (!proc_create("ptype", S_IRUGO, net->proc_net, &ptype_seq_fops)) |
4526 | goto out_softnet; | 4527 | goto out_softnet; |
4527 | 4528 | ||
4528 | if (wext_proc_init(net)) | 4529 | if (wext_proc_init(net)) |
diff --git a/net/core/dev_addr_lists.c b/net/core/dev_addr_lists.c index b079c7bbc157..7c62ec449f3c 100644 --- a/net/core/dev_addr_lists.c +++ b/net/core/dev_addr_lists.c | |||
@@ -780,7 +780,7 @@ static const struct file_operations dev_mc_seq_fops = { | |||
780 | 780 | ||
781 | static int __net_init dev_mc_net_init(struct net *net) | 781 | static int __net_init dev_mc_net_init(struct net *net) |
782 | { | 782 | { |
783 | if (!proc_net_fops_create(net, "dev_mcast", 0, &dev_mc_seq_fops)) | 783 | if (!proc_create("dev_mcast", 0, net->proc_net, &dev_mc_seq_fops)) |
784 | return -ENOMEM; | 784 | return -ENOMEM; |
785 | return 0; | 785 | return 0; |
786 | } | 786 | } |
diff --git a/net/core/sock.c b/net/core/sock.c index f1e14e20d181..b4d562ef36fb 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -2836,7 +2836,7 @@ static const struct file_operations proto_seq_fops = { | |||
2836 | 2836 | ||
2837 | static __net_init int proto_init_net(struct net *net) | 2837 | static __net_init int proto_init_net(struct net *net) |
2838 | { | 2838 | { |
2839 | if (!proc_net_fops_create(net, "protocols", S_IRUGO, &proto_seq_fops)) | 2839 | if (!proc_create("protocols", S_IRUGO, net->proc_net, &proto_seq_fops)) |
2840 | return -ENOMEM; | 2840 | return -ENOMEM; |
2841 | 2841 | ||
2842 | return 0; | 2842 | return 0; |
diff --git a/net/dccp/probe.c b/net/dccp/probe.c index 0a8d6ebd9b45..d183589b77e9 100644 --- a/net/dccp/probe.c +++ b/net/dccp/probe.c | |||
@@ -171,7 +171,7 @@ static __init int dccpprobe_init(void) | |||
171 | spin_lock_init(&dccpw.lock); | 171 | spin_lock_init(&dccpw.lock); |
172 | if (kfifo_alloc(&dccpw.fifo, bufsize, GFP_KERNEL)) | 172 | if (kfifo_alloc(&dccpw.fifo, bufsize, GFP_KERNEL)) |
173 | return ret; | 173 | return ret; |
174 | if (!proc_net_fops_create(&init_net, procname, S_IRUSR, &dccpprobe_fops)) | 174 | if (!proc_create(procname, S_IRUSR, init_net.proc_net, &dccpprobe_fops)) |
175 | goto err0; | 175 | goto err0; |
176 | 176 | ||
177 | ret = setup_jprobe(); | 177 | ret = setup_jprobe(); |
diff --git a/net/decnet/af_decnet.c b/net/decnet/af_decnet.c index 64d9843f9e04..f916013d9074 100644 --- a/net/decnet/af_decnet.c +++ b/net/decnet/af_decnet.c | |||
@@ -2384,7 +2384,7 @@ static int __init decnet_init(void) | |||
2384 | dev_add_pack(&dn_dix_packet_type); | 2384 | dev_add_pack(&dn_dix_packet_type); |
2385 | register_netdevice_notifier(&dn_dev_notifier); | 2385 | register_netdevice_notifier(&dn_dev_notifier); |
2386 | 2386 | ||
2387 | proc_net_fops_create(&init_net, "decnet", S_IRUGO, &dn_socket_seq_fops); | 2387 | proc_create("decnet", S_IRUGO, init_net.proc_net, &dn_socket_seq_fops); |
2388 | dn_register_sysctl(); | 2388 | dn_register_sysctl(); |
2389 | out: | 2389 | out: |
2390 | return rc; | 2390 | return rc; |
diff --git a/net/decnet/dn_dev.c b/net/decnet/dn_dev.c index e47ba9fc4a0e..a04894a2c26e 100644 --- a/net/decnet/dn_dev.c +++ b/net/decnet/dn_dev.c | |||
@@ -1412,7 +1412,7 @@ void __init dn_dev_init(void) | |||
1412 | rtnl_register(PF_DECnet, RTM_DELADDR, dn_nl_deladdr, NULL, NULL); | 1412 | rtnl_register(PF_DECnet, RTM_DELADDR, dn_nl_deladdr, NULL, NULL); |
1413 | rtnl_register(PF_DECnet, RTM_GETADDR, NULL, dn_nl_dump_ifaddr, NULL); | 1413 | rtnl_register(PF_DECnet, RTM_GETADDR, NULL, dn_nl_dump_ifaddr, NULL); |
1414 | 1414 | ||
1415 | proc_net_fops_create(&init_net, "decnet_dev", S_IRUGO, &dn_dev_seq_fops); | 1415 | proc_create("decnet_dev", S_IRUGO, init_net.proc_net, &dn_dev_seq_fops); |
1416 | 1416 | ||
1417 | #ifdef CONFIG_SYSCTL | 1417 | #ifdef CONFIG_SYSCTL |
1418 | { | 1418 | { |
diff --git a/net/decnet/dn_neigh.c b/net/decnet/dn_neigh.c index 856636addd76..f3408f369fe3 100644 --- a/net/decnet/dn_neigh.c +++ b/net/decnet/dn_neigh.c | |||
@@ -590,7 +590,8 @@ static const struct file_operations dn_neigh_seq_fops = { | |||
590 | void __init dn_neigh_init(void) | 590 | void __init dn_neigh_init(void) |
591 | { | 591 | { |
592 | neigh_table_init(&dn_neigh_table); | 592 | neigh_table_init(&dn_neigh_table); |
593 | proc_net_fops_create(&init_net, "decnet_neigh", S_IRUGO, &dn_neigh_seq_fops); | 593 | proc_create("decnet_neigh", S_IRUGO, init_net.proc_net, |
594 | &dn_neigh_seq_fops); | ||
594 | } | 595 | } |
595 | 596 | ||
596 | void __exit dn_neigh_cleanup(void) | 597 | void __exit dn_neigh_cleanup(void) |
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index 1550028fcd8e..8afb257f279f 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c | |||
@@ -1901,7 +1901,8 @@ void __init dn_route_init(void) | |||
1901 | 1901 | ||
1902 | dn_dst_ops.gc_thresh = (dn_rt_hash_mask + 1); | 1902 | dn_dst_ops.gc_thresh = (dn_rt_hash_mask + 1); |
1903 | 1903 | ||
1904 | proc_net_fops_create(&init_net, "decnet_cache", S_IRUGO, &dn_rt_cache_seq_fops); | 1904 | proc_create("decnet_cache", S_IRUGO, init_net.proc_net, |
1905 | &dn_rt_cache_seq_fops); | ||
1905 | 1906 | ||
1906 | #ifdef CONFIG_DECNET_ROUTER | 1907 | #ifdef CONFIG_DECNET_ROUTER |
1907 | rtnl_register(PF_DECnet, RTM_GETROUTE, dn_cache_getroute, | 1908 | rtnl_register(PF_DECnet, RTM_GETROUTE, dn_cache_getroute, |
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); |
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 | } |
diff --git a/net/key/af_key.c b/net/key/af_key.c index 7b3ba32ca678..021a429312b1 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c | |||
@@ -3740,7 +3740,7 @@ static int __net_init pfkey_init_proc(struct net *net) | |||
3740 | { | 3740 | { |
3741 | struct proc_dir_entry *e; | 3741 | struct proc_dir_entry *e; |
3742 | 3742 | ||
3743 | e = proc_net_fops_create(net, "pfkey", 0, &pfkey_proc_ops); | 3743 | e = proc_create("pfkey", 0, net->proc_net, &pfkey_proc_ops); |
3744 | if (e == NULL) | 3744 | if (e == NULL) |
3745 | return -ENOMEM; | 3745 | return -ENOMEM; |
3746 | 3746 | ||
diff --git a/net/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c index 716605c241f4..3ca270b4d47c 100644 --- a/net/l2tp/l2tp_ppp.c +++ b/net/l2tp/l2tp_ppp.c | |||
@@ -1783,7 +1783,8 @@ static __net_init int pppol2tp_init_net(struct net *net) | |||
1783 | struct proc_dir_entry *pde; | 1783 | struct proc_dir_entry *pde; |
1784 | int err = 0; | 1784 | int err = 0; |
1785 | 1785 | ||
1786 | pde = proc_net_fops_create(net, "pppol2tp", S_IRUGO, &pppol2tp_proc_fops); | 1786 | pde = proc_create("pppol2tp", S_IRUGO, net->proc_net, |
1787 | &pppol2tp_proc_fops); | ||
1787 | if (!pde) { | 1788 | if (!pde) { |
1788 | err = -ENOMEM; | 1789 | err = -ENOMEM; |
1789 | goto out; | 1790 | goto out; |
diff --git a/net/netfilter/ipvs/ip_vs_app.c b/net/netfilter/ipvs/ip_vs_app.c index 9713e6e86d47..1db8a25fe4ba 100644 --- a/net/netfilter/ipvs/ip_vs_app.c +++ b/net/netfilter/ipvs/ip_vs_app.c | |||
@@ -605,7 +605,7 @@ int __net_init ip_vs_app_net_init(struct net *net) | |||
605 | struct netns_ipvs *ipvs = net_ipvs(net); | 605 | struct netns_ipvs *ipvs = net_ipvs(net); |
606 | 606 | ||
607 | INIT_LIST_HEAD(&ipvs->app_list); | 607 | INIT_LIST_HEAD(&ipvs->app_list); |
608 | proc_net_fops_create(net, "ip_vs_app", 0, &ip_vs_app_fops); | 608 | proc_create("ip_vs_app", 0, net->proc_net, &ip_vs_app_fops); |
609 | return 0; | 609 | return 0; |
610 | } | 610 | } |
611 | 611 | ||
diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c index 68e368a4beed..91ae11280c24 100644 --- a/net/netfilter/ipvs/ip_vs_conn.c +++ b/net/netfilter/ipvs/ip_vs_conn.c | |||
@@ -1291,8 +1291,8 @@ int __net_init ip_vs_conn_net_init(struct net *net) | |||
1291 | 1291 | ||
1292 | atomic_set(&ipvs->conn_count, 0); | 1292 | atomic_set(&ipvs->conn_count, 0); |
1293 | 1293 | ||
1294 | proc_net_fops_create(net, "ip_vs_conn", 0, &ip_vs_conn_fops); | 1294 | proc_create("ip_vs_conn", 0, net->proc_net, &ip_vs_conn_fops); |
1295 | proc_net_fops_create(net, "ip_vs_conn_sync", 0, &ip_vs_conn_sync_fops); | 1295 | proc_create("ip_vs_conn_sync", 0, net->proc_net, &ip_vs_conn_sync_fops); |
1296 | return 0; | 1296 | return 0; |
1297 | } | 1297 | } |
1298 | 1298 | ||
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c index ec664cbb119f..7d69181f8daa 100644 --- a/net/netfilter/ipvs/ip_vs_ctl.c +++ b/net/netfilter/ipvs/ip_vs_ctl.c | |||
@@ -3800,10 +3800,10 @@ int __net_init ip_vs_control_net_init(struct net *net) | |||
3800 | 3800 | ||
3801 | spin_lock_init(&ipvs->tot_stats.lock); | 3801 | spin_lock_init(&ipvs->tot_stats.lock); |
3802 | 3802 | ||
3803 | proc_net_fops_create(net, "ip_vs", 0, &ip_vs_info_fops); | 3803 | proc_create("ip_vs", 0, net->proc_net, &ip_vs_info_fops); |
3804 | proc_net_fops_create(net, "ip_vs_stats", 0, &ip_vs_stats_fops); | 3804 | proc_create("ip_vs_stats", 0, net->proc_net, &ip_vs_stats_fops); |
3805 | proc_net_fops_create(net, "ip_vs_stats_percpu", 0, | 3805 | proc_create("ip_vs_stats_percpu", 0, net->proc_net, |
3806 | &ip_vs_stats_percpu_fops); | 3806 | &ip_vs_stats_percpu_fops); |
3807 | 3807 | ||
3808 | if (ip_vs_control_net_init_sysctl(net)) | 3808 | if (ip_vs_control_net_init_sysctl(net)) |
3809 | goto err; | 3809 | goto err; |
diff --git a/net/netfilter/nf_conntrack_expect.c b/net/netfilter/nf_conntrack_expect.c index bdd341899ed3..4c15f8d0b741 100644 --- a/net/netfilter/nf_conntrack_expect.c +++ b/net/netfilter/nf_conntrack_expect.c | |||
@@ -571,7 +571,8 @@ static int exp_proc_init(struct net *net) | |||
571 | #ifdef CONFIG_NF_CONNTRACK_PROCFS | 571 | #ifdef CONFIG_NF_CONNTRACK_PROCFS |
572 | struct proc_dir_entry *proc; | 572 | struct proc_dir_entry *proc; |
573 | 573 | ||
574 | proc = proc_net_fops_create(net, "nf_conntrack_expect", 0440, &exp_file_ops); | 574 | proc = proc_create("nf_conntrack_expect", 0440, net->proc_net, |
575 | &exp_file_ops); | ||
575 | if (!proc) | 576 | if (!proc) |
576 | return -ENOMEM; | 577 | return -ENOMEM; |
577 | #endif /* CONFIG_NF_CONNTRACK_PROCFS */ | 578 | #endif /* CONFIG_NF_CONNTRACK_PROCFS */ |
diff --git a/net/netfilter/nf_conntrack_standalone.c b/net/netfilter/nf_conntrack_standalone.c index 7936bf7f90ba..bee9aecc7ba7 100644 --- a/net/netfilter/nf_conntrack_standalone.c +++ b/net/netfilter/nf_conntrack_standalone.c | |||
@@ -366,7 +366,7 @@ static int nf_conntrack_standalone_init_proc(struct net *net) | |||
366 | { | 366 | { |
367 | struct proc_dir_entry *pde; | 367 | struct proc_dir_entry *pde; |
368 | 368 | ||
369 | pde = proc_net_fops_create(net, "nf_conntrack", 0440, &ct_file_ops); | 369 | pde = proc_create("nf_conntrack", 0440, net->proc_net, &ct_file_ops); |
370 | if (!pde) | 370 | if (!pde) |
371 | goto out_nf_conntrack; | 371 | goto out_nf_conntrack; |
372 | 372 | ||
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 74827e3b26a1..50084c40a129 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -2145,7 +2145,7 @@ static const struct net_proto_family netlink_family_ops = { | |||
2145 | static int __net_init netlink_net_init(struct net *net) | 2145 | static int __net_init netlink_net_init(struct net *net) |
2146 | { | 2146 | { |
2147 | #ifdef CONFIG_PROC_FS | 2147 | #ifdef CONFIG_PROC_FS |
2148 | if (!proc_net_fops_create(net, "netlink", 0, &netlink_seq_fops)) | 2148 | if (!proc_create("netlink", 0, net->proc_net, &netlink_seq_fops)) |
2149 | return -ENOMEM; | 2149 | return -ENOMEM; |
2150 | #endif | 2150 | #endif |
2151 | return 0; | 2151 | return 0; |
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index 7261eb81974f..71b861338407 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c | |||
@@ -1452,9 +1452,9 @@ static int __init nr_proto_init(void) | |||
1452 | 1452 | ||
1453 | nr_loopback_init(); | 1453 | nr_loopback_init(); |
1454 | 1454 | ||
1455 | proc_net_fops_create(&init_net, "nr", S_IRUGO, &nr_info_fops); | 1455 | proc_create("nr", S_IRUGO, init_net.proc_net, &nr_info_fops); |
1456 | proc_net_fops_create(&init_net, "nr_neigh", S_IRUGO, &nr_neigh_fops); | 1456 | proc_create("nr_neigh", S_IRUGO, init_net.proc_net, &nr_neigh_fops); |
1457 | proc_net_fops_create(&init_net, "nr_nodes", S_IRUGO, &nr_nodes_fops); | 1457 | proc_create("nr_nodes", S_IRUGO, init_net.proc_net, &nr_nodes_fops); |
1458 | out: | 1458 | out: |
1459 | return rc; | 1459 | return rc; |
1460 | fail: | 1460 | fail: |
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index c111bd0e083a..b7b2d56126c4 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -3828,7 +3828,7 @@ static int __net_init packet_net_init(struct net *net) | |||
3828 | mutex_init(&net->packet.sklist_lock); | 3828 | mutex_init(&net->packet.sklist_lock); |
3829 | INIT_HLIST_HEAD(&net->packet.sklist); | 3829 | INIT_HLIST_HEAD(&net->packet.sklist); |
3830 | 3830 | ||
3831 | if (!proc_net_fops_create(net, "packet", 0, &packet_seq_fops)) | 3831 | if (!proc_create("packet", 0, net->proc_net, &packet_seq_fops)) |
3832 | return -ENOMEM; | 3832 | return -ENOMEM; |
3833 | 3833 | ||
3834 | return 0; | 3834 | return 0; |
diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c index 5bf6341e2dd4..0e527c9dd041 100644 --- a/net/phonet/pn_dev.c +++ b/net/phonet/pn_dev.c | |||
@@ -320,7 +320,7 @@ static int __net_init phonet_init_net(struct net *net) | |||
320 | { | 320 | { |
321 | struct phonet_net *pnn = phonet_pernet(net); | 321 | struct phonet_net *pnn = phonet_pernet(net); |
322 | 322 | ||
323 | if (!proc_net_fops_create(net, "phonet", 0, &pn_sock_seq_fops)) | 323 | if (!proc_create("phonet", 0, net->proc_net, &pn_sock_seq_fops)) |
324 | return -ENOMEM; | 324 | return -ENOMEM; |
325 | 325 | ||
326 | INIT_LIST_HEAD(&pnn->pndevs.list); | 326 | INIT_LIST_HEAD(&pnn->pndevs.list); |
@@ -348,7 +348,7 @@ int __init phonet_device_init(void) | |||
348 | if (err) | 348 | if (err) |
349 | return err; | 349 | return err; |
350 | 350 | ||
351 | proc_net_fops_create(&init_net, "pnresource", 0, &pn_res_seq_fops); | 351 | proc_create("pnresource", 0, init_net.proc_net, &pn_res_seq_fops); |
352 | register_netdevice_notifier(&phonet_device_notifier); | 352 | register_netdevice_notifier(&phonet_device_notifier); |
353 | err = phonet_netlink_register(); | 353 | err = phonet_netlink_register(); |
354 | if (err) | 354 | if (err) |
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index c4719ce604c2..5fd8aacbb5ae 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c | |||
@@ -1575,10 +1575,13 @@ static int __init rose_proto_init(void) | |||
1575 | 1575 | ||
1576 | rose_add_loopback_neigh(); | 1576 | rose_add_loopback_neigh(); |
1577 | 1577 | ||
1578 | proc_net_fops_create(&init_net, "rose", S_IRUGO, &rose_info_fops); | 1578 | proc_create("rose", S_IRUGO, init_net.proc_net, &rose_info_fops); |
1579 | proc_net_fops_create(&init_net, "rose_neigh", S_IRUGO, &rose_neigh_fops); | 1579 | proc_create("rose_neigh", S_IRUGO, init_net.proc_net, |
1580 | proc_net_fops_create(&init_net, "rose_nodes", S_IRUGO, &rose_nodes_fops); | 1580 | &rose_neigh_fops); |
1581 | proc_net_fops_create(&init_net, "rose_routes", S_IRUGO, &rose_routes_fops); | 1581 | proc_create("rose_nodes", S_IRUGO, init_net.proc_net, |
1582 | &rose_nodes_fops); | ||
1583 | proc_create("rose_routes", S_IRUGO, init_net.proc_net, | ||
1584 | &rose_routes_fops); | ||
1582 | out: | 1585 | out: |
1583 | return rc; | 1586 | return rc; |
1584 | fail: | 1587 | fail: |
diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c index 5b0fd291babb..59c7c7d59402 100644 --- a/net/rxrpc/af_rxrpc.c +++ b/net/rxrpc/af_rxrpc.c | |||
@@ -839,8 +839,9 @@ static int __init af_rxrpc_init(void) | |||
839 | } | 839 | } |
840 | 840 | ||
841 | #ifdef CONFIG_PROC_FS | 841 | #ifdef CONFIG_PROC_FS |
842 | proc_net_fops_create(&init_net, "rxrpc_calls", 0, &rxrpc_call_seq_fops); | 842 | proc_create("rxrpc_calls", 0, init_net.proc_net, &rxrpc_call_seq_fops); |
843 | proc_net_fops_create(&init_net, "rxrpc_conns", 0, &rxrpc_connection_seq_fops); | 843 | proc_create("rxrpc_conns", 0, init_net.proc_net, |
844 | &rxrpc_connection_seq_fops); | ||
844 | #endif | 845 | #endif |
845 | return 0; | 846 | return 0; |
846 | 847 | ||
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index fe1ba54b93f7..d8cf7d3dfe8c 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c | |||
@@ -1768,7 +1768,7 @@ static int __net_init psched_net_init(struct net *net) | |||
1768 | { | 1768 | { |
1769 | struct proc_dir_entry *e; | 1769 | struct proc_dir_entry *e; |
1770 | 1770 | ||
1771 | e = proc_net_fops_create(net, "psched", 0, &psched_fops); | 1771 | e = proc_create("psched", 0, net->proc_net, &psched_fops); |
1772 | if (e == NULL) | 1772 | if (e == NULL) |
1773 | return -ENOMEM; | 1773 | return -ENOMEM; |
1774 | 1774 | ||
diff --git a/net/sctp/probe.c b/net/sctp/probe.c index 261b7b9858a4..dd507f5ca8e7 100644 --- a/net/sctp/probe.c +++ b/net/sctp/probe.c | |||
@@ -195,8 +195,8 @@ static __init int sctpprobe_init(void) | |||
195 | if (kfifo_alloc(&sctpw.fifo, bufsize, GFP_KERNEL)) | 195 | if (kfifo_alloc(&sctpw.fifo, bufsize, GFP_KERNEL)) |
196 | return ret; | 196 | return ret; |
197 | 197 | ||
198 | if (!proc_net_fops_create(&init_net, procname, S_IRUSR, | 198 | if (!proc_create(procname, S_IRUSR, init_net.proc_net, |
199 | &sctpprobe_fops)) | 199 | &sctpprobe_fops)) |
200 | goto free_kfifo; | 200 | goto free_kfifo; |
201 | 201 | ||
202 | ret = register_jprobe(&sctp_recv_probe); | 202 | ret = register_jprobe(&sctp_recv_probe); |
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 0c612361c153..0c479b6f407c 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
@@ -2402,7 +2402,7 @@ static int __net_init unix_net_init(struct net *net) | |||
2402 | goto out; | 2402 | goto out; |
2403 | 2403 | ||
2404 | #ifdef CONFIG_PROC_FS | 2404 | #ifdef CONFIG_PROC_FS |
2405 | if (!proc_net_fops_create(net, "unix", 0, &unix_seq_fops)) { | 2405 | if (!proc_create("unix", 0, net->proc_net, &unix_seq_fops)) { |
2406 | unix_sysctl_unregister(net); | 2406 | unix_sysctl_unregister(net); |
2407 | goto out; | 2407 | goto out; |
2408 | } | 2408 | } |
diff --git a/net/wireless/wext-proc.c b/net/wireless/wext-proc.c index 8bafa31fa9f8..00fc5bb3fb63 100644 --- a/net/wireless/wext-proc.c +++ b/net/wireless/wext-proc.c | |||
@@ -143,7 +143,8 @@ static const struct file_operations wireless_seq_fops = { | |||
143 | int __net_init wext_proc_init(struct net *net) | 143 | int __net_init wext_proc_init(struct net *net) |
144 | { | 144 | { |
145 | /* Create /proc/net/wireless entry */ | 145 | /* Create /proc/net/wireless entry */ |
146 | if (!proc_net_fops_create(net, "wireless", S_IRUGO, &wireless_seq_fops)) | 146 | if (!proc_create("wireless", S_IRUGO, net->proc_net, |
147 | &wireless_seq_fops)) | ||
147 | return -ENOMEM; | 148 | return -ENOMEM; |
148 | 149 | ||
149 | return 0; | 150 | return 0; |
diff --git a/net/xfrm/xfrm_proc.c b/net/xfrm/xfrm_proc.c index 603903853e89..9abe14fb59b5 100644 --- a/net/xfrm/xfrm_proc.c +++ b/net/xfrm/xfrm_proc.c | |||
@@ -74,8 +74,8 @@ static const struct file_operations xfrm_statistics_seq_fops = { | |||
74 | 74 | ||
75 | int __net_init xfrm_proc_init(struct net *net) | 75 | int __net_init xfrm_proc_init(struct net *net) |
76 | { | 76 | { |
77 | if (!proc_net_fops_create(net, "xfrm_stat", S_IRUGO, | 77 | if (!proc_create("xfrm_stat", S_IRUGO, net->proc_net, |
78 | &xfrm_statistics_seq_fops)) | 78 | &xfrm_statistics_seq_fops)) |
79 | return -ENOMEM; | 79 | return -ENOMEM; |
80 | return 0; | 80 | return 0; |
81 | } | 81 | } |