[Devel] [PATCH rh9 2/4] ve/proc/net: Rename proc_ve_create_*() helpers

Konstantin Khorenko khorenko at virtuozzo.com
Thu Aug 11 14:40:45 MSK 2022


To_merge: 1c9116809e8a ("ve/proc/net: virtualize all the network proc
entries")

Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 drivers/net/bonding/bond_procfs.c       | 2 +-
 drivers/net/ppp/pppoe.c                 | 2 +-
 net/8021q/vlanproc.c                    | 4 ++--
 net/bluetooth/af_bluetooth.c            | 2 +-
 net/core/net-procfs.c                   | 8 ++++----
 net/core/sock.c                         | 2 +-
 net/ipv4/arp.c                          | 2 +-
 net/ipv4/fib_trie.c                     | 6 +++---
 net/ipv4/igmp.c                         | 4 ++--
 net/ipv4/ipmr.c                         | 4 ++--
 net/ipv4/ping.c                         | 2 +-
 net/ipv4/proc.c                         | 6 +++---
 net/ipv4/raw.c                          | 2 +-
 net/ipv4/route.c                        | 6 +++---
 net/ipv4/tcp_ipv4.c                     | 2 +-
 net/ipv4/udp.c                          | 2 +-
 net/ipv6/addrconf.c                     | 2 +-
 net/ipv6/anycast.c                      | 2 +-
 net/ipv6/ip6_flowlabel.c                | 2 +-
 net/ipv6/ip6mr.c                        | 4 ++--
 net/ipv6/mcast.c                        | 4 ++--
 net/ipv6/proc.c                         | 6 +++---
 net/ipv6/raw.c                          | 2 +-
 net/ipv6/route.c                        | 4 ++--
 net/key/af_key.c                        | 2 +-
 net/l2tp/l2tp_ppp.c                     | 2 +-
 net/netfilter/ipvs/ip_vs_app.c          | 2 +-
 net/netfilter/ipvs/ip_vs_conn.c         | 4 ++--
 net/netfilter/ipvs/ip_vs_ctl.c          | 6 +++---
 net/netfilter/nf_conntrack_expect.c     | 2 +-
 net/netfilter/nf_conntrack_standalone.c | 4 ++--
 net/netfilter/nf_synproxy_core.c        | 2 +-
 net/netfilter/x_tables.c                | 6 +++---
 net/netfilter/xt_hashlimit.c            | 2 +-
 net/netfilter/xt_recent.c               | 2 +-
 net/netlink/af_netlink.c                | 2 +-
 net/packet/af_packet.c                  | 2 +-
 net/phonet/pn_dev.c                     | 2 +-
 net/sched/sch_api.c                     | 2 +-
 net/sctp/objcnt.c                       | 2 +-
 net/sctp/proc.c                         | 8 ++++----
 net/sunrpc/cache.c                      | 6 +++---
 net/sunrpc/stats.c                      | 2 +-
 net/unix/af_unix.c                      | 2 +-
 net/wireless/wext-proc.c                | 2 +-
 net/xfrm/xfrm_proc.c                    | 2 +-
 46 files changed, 74 insertions(+), 74 deletions(-)

diff --git a/drivers/net/bonding/bond_procfs.c b/drivers/net/bonding/bond_procfs.c
index 2f6247384d80..2cf32f340842 100644
--- a/drivers/net/bonding/bond_procfs.c
+++ b/drivers/net/bonding/bond_procfs.c
@@ -269,7 +269,7 @@ void bond_create_proc_entry(struct bonding *bond)
 	struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id);
 
 	if (bn->proc_dir) {
-		bond->proc_entry = proc_net_create_seq_data(bond_dev->name, 0444,
+		bond->proc_entry = proc_ve_create_seq_data(bond_dev->name, 0444,
 				bn->proc_dir, &bond_info_seq_ops, bond);
 		if (bond->proc_entry == NULL)
 			netdev_warn(bond_dev, "Cannot create /proc/net/%s/%s\n",
diff --git a/drivers/net/ppp/pppoe.c b/drivers/net/ppp/pppoe.c
index 4b18dc9b28a4..e1ec2f1f7442 100644
--- a/drivers/net/ppp/pppoe.c
+++ b/drivers/net/ppp/pppoe.c
@@ -1177,7 +1177,7 @@ static __net_init int pppoe_init_net(struct net *net)
 
 	rwlock_init(&pn->hash_lock);
 
-	pde = proc_net_create_net("pppoe", 0444, net->proc_net,
+	pde = proc_ve_create_net("pppoe", 0444, net->proc_net,
 			&pppoe_seq_ops, sizeof(struct seq_net_private));
 #ifdef CONFIG_PROC_FS
 	if (!pde)
diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c
index cafdde58c503..6f07283be521 100644
--- a/net/8021q/vlanproc.c
+++ b/net/8021q/vlanproc.c
@@ -116,7 +116,7 @@ int __net_init vlan_proc_init(struct net *net)
 	if (!vn->proc_vlan_dir)
 		goto err;
 
-	vn->proc_vlan_conf = proc_net_create_net(name_conf, S_IFREG | 0600,
+	vn->proc_vlan_conf = proc_ve_create_net(name_conf, S_IFREG | 0600,
 			vn->proc_vlan_dir, &vlan_seq_ops,
 			sizeof(struct seq_net_private));
 	if (!vn->proc_vlan_conf)
@@ -140,7 +140,7 @@ int vlan_proc_add_dev(struct net_device *vlandev)
 
 	if (!strcmp(vlandev->name, name_conf))
 		return -EINVAL;
-	vlan->dent = proc_net_create_single_data(vlandev->name, S_IFREG | 0600,
+	vlan->dent = proc_ve_create_single_data(vlandev->name, S_IFREG | 0600,
 			vn->proc_vlan_dir, vlandev_seq_show, vlandev);
 	if (!vlan->dent)
 		return -ENOBUFS;
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c
index 0932cec6e667..2bd867dd7272 100644
--- a/net/bluetooth/af_bluetooth.c
+++ b/net/bluetooth/af_bluetooth.c
@@ -682,7 +682,7 @@ int bt_procfs_init(struct net *net, const char *name,
 {
 	sk_list->custom_seq_show = seq_show;
 
-	if (!proc_net_create_seq_data(name, 0, net->proc_net, &bt_seq_ops, sk_list))
+	if (!proc_ve_create_seq_data(name, 0, net->proc_net, &bt_seq_ops, sk_list))
 		return -ENOMEM;
 	return 0;
 }
diff --git a/net/core/net-procfs.c b/net/core/net-procfs.c
index 03fb179b9a34..798e81151faf 100644
--- a/net/core/net-procfs.c
+++ b/net/core/net-procfs.c
@@ -285,13 +285,13 @@ static int __net_init dev_proc_net_init(struct net *net)
 {
 	int rc = -ENOMEM;
 
-	if (!proc_net_create_net("dev", 0444, net->proc_net, &dev_seq_ops,
+	if (!proc_ve_create_net("dev", 0444, net->proc_net, &dev_seq_ops,
 			sizeof(struct seq_net_private)))
 		goto out;
-	if (!proc_net_create_seq("softnet_stat", 0444, net->proc_net,
+	if (!proc_ve_create_seq("softnet_stat", 0444, net->proc_net,
 			 &softnet_seq_ops))
 		goto out_dev;
-	if (!proc_net_create_net("ptype", 0444, net->proc_net, &ptype_seq_ops,
+	if (!proc_ve_create_net("ptype", 0444, net->proc_net, &ptype_seq_ops,
 			sizeof(struct seq_net_private)))
 		goto out_softnet;
 
@@ -351,7 +351,7 @@ static const struct seq_operations dev_mc_seq_ops = {
 
 static int __net_init dev_mc_net_init(struct net *net)
 {
-	if (!proc_net_create_net("dev_mcast", 0, net->proc_net, &dev_mc_seq_ops,
+	if (!proc_ve_create_net("dev_mcast", 0, net->proc_net, &dev_mc_seq_ops,
 			sizeof(struct seq_net_private)))
 		return -ENOMEM;
 	return 0;
diff --git a/net/core/sock.c b/net/core/sock.c
index efc5eabcd4e5..a9c9a93b6baf 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -3925,7 +3925,7 @@ static const struct seq_operations proto_seq_ops = {
 
 static __net_init int proto_init_net(struct net *net)
 {
-	if (!proc_net_create_net("protocols", 0444, net->proc_net, &proto_seq_ops,
+	if (!proc_ve_create_net("protocols", 0444, net->proc_net, &proto_seq_ops,
 			sizeof(struct seq_net_private)))
 		return -ENOMEM;
 
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index 45f7f7d83399..8d0f5f761e5f 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -1426,7 +1426,7 @@ static const struct seq_operations arp_seq_ops = {
 
 static int __net_init arp_net_init(struct net *net)
 {
-	if (!proc_net_create_net("arp", 0444, net->proc_net, &arp_seq_ops,
+	if (!proc_ve_create_net("arp", 0444, net->proc_net, &arp_seq_ops,
 			sizeof(struct neigh_seq_state)))
 		return -ENOMEM;
 	return 0;
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c
index 9340905c668c..9a9a7fb34268 100644
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -3014,15 +3014,15 @@ static const struct seq_operations fib_route_seq_ops = {
 
 int __net_init fib_proc_init(struct net *net)
 {
-	if (!proc_net_create_net("fib_trie", 0444, net->proc_net, &fib_trie_seq_ops,
+	if (!proc_ve_create_net("fib_trie", 0444, net->proc_net, &fib_trie_seq_ops,
 			sizeof(struct fib_trie_iter)))
 		goto out1;
 
-	if (!proc_net_create_net_single("fib_triestat", 0444, net->proc_net,
+	if (!proc_ve_create_net_single("fib_triestat", 0444, net->proc_net,
 			fib_triestat_seq_show, NULL))
 		goto out2;
 
-	if (!proc_net_create_net("route", 0444, net->proc_net, &fib_route_seq_ops,
+	if (!proc_ve_create_net("route", 0444, net->proc_net, &fib_route_seq_ops,
 			sizeof(struct fib_route_iter)))
 		goto out3;
 
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c
index 2138da37ee37..bfb251f31b4c 100644
--- a/net/ipv4/igmp.c
+++ b/net/ipv4/igmp.c
@@ -3003,11 +3003,11 @@ static int __net_init igmp_net_init(struct net *net)
 	struct proc_dir_entry *pde;
 	int err;
 
-	pde = proc_net_create_net("igmp", 0444, net->proc_net, &igmp_mc_seq_ops,
+	pde = proc_ve_create_net("igmp", 0444, net->proc_net, &igmp_mc_seq_ops,
 			sizeof(struct igmp_mc_iter_state));
 	if (!pde)
 		goto out_igmp;
-	pde = proc_net_create_net("mcfilter", 0444, net->proc_net,
+	pde = proc_ve_create_net("mcfilter", 0444, net->proc_net,
 			&igmp_mcf_seq_ops, sizeof(struct igmp_mcf_iter_state));
 	if (!pde)
 		goto out_mcfilter;
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index 2b3db4ed782c..6c848956ab76 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -3066,10 +3066,10 @@ static int __net_init ipmr_net_init(struct net *net)
 
 #ifdef CONFIG_PROC_FS
 	err = -ENOMEM;
-	if (!proc_net_create_net("ip_mr_vif", 0, net->proc_net, &ipmr_vif_seq_ops,
+	if (!proc_ve_create_net("ip_mr_vif", 0, net->proc_net, &ipmr_vif_seq_ops,
 			sizeof(struct mr_vif_iter)))
 		goto proc_vif_fail;
-	if (!proc_net_create_net("ip_mr_cache", 0, net->proc_net, &ipmr_mfc_seq_ops,
+	if (!proc_ve_create_net("ip_mr_cache", 0, net->proc_net, &ipmr_mfc_seq_ops,
 			sizeof(struct mr_mfc_iter)))
 		goto proc_cache_fail;
 #endif
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c
index 846ddcf31541..9f3f5b97f71c 100644
--- a/net/ipv4/ping.c
+++ b/net/ipv4/ping.c
@@ -1140,7 +1140,7 @@ static const struct seq_operations ping_v4_seq_ops = {
 
 static int __net_init ping_v4_proc_init_net(struct net *net)
 {
-	if (!proc_net_create_net("icmp", 0444, net->proc_net, &ping_v4_seq_ops,
+	if (!proc_ve_create_net("icmp", 0444, net->proc_net, &ping_v4_seq_ops,
 			sizeof(struct ping_iter_state)))
 		return -ENOMEM;
 	return 0;
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c
index 077438362b0d..a30d5611ebe7 100644
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -519,13 +519,13 @@ static int netstat_seq_show(struct seq_file *seq, void *v)
 
 static __net_init int ip_proc_init_net(struct net *net)
 {
-	if (!proc_net_create_net_single("sockstat", 0444, net->proc_net,
+	if (!proc_ve_create_net_single("sockstat", 0444, net->proc_net,
 			sockstat_seq_show, NULL))
 		goto out_sockstat;
-	if (!proc_net_create_net_single("netstat", 0444, net->proc_net,
+	if (!proc_ve_create_net_single("netstat", 0444, net->proc_net,
 			netstat_seq_show, NULL))
 		goto out_netstat;
-	if (!proc_net_create_net_single("snmp", 0444, net->proc_net, snmp_seq_show,
+	if (!proc_ve_create_net_single("snmp", 0444, net->proc_net, snmp_seq_show,
 			NULL))
 		goto out_snmp;
 
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
index 60ed42e52852..d0369e9719ee 100644
--- a/net/ipv4/raw.c
+++ b/net/ipv4/raw.c
@@ -1083,7 +1083,7 @@ static const struct seq_operations raw_seq_ops = {
 
 static __net_init int raw_init_net(struct net *net)
 {
-	if (!proc_net_create_net_data("raw", 0444, net->proc_net, &raw_seq_ops,
+	if (!proc_ve_create_net_data("raw", 0444, net->proc_net, &raw_seq_ops,
 			sizeof(struct raw_iter_state), &raw_v4_hashinfo))
 		return -ENOMEM;
 
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index de6e6dac4332..a271b9d43a53 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -342,18 +342,18 @@ static int __net_init ip_rt_do_proc_init(struct net *net)
 {
 	struct proc_dir_entry *pde;
 
-	pde = proc_net_create_seq("rt_cache", 0444, net->proc_net,
+	pde = proc_ve_create_seq("rt_cache", 0444, net->proc_net,
 			      &rt_cache_seq_ops);
 	if (!pde)
 		goto err1;
 
-	pde = proc_net_create_seq("rt_cache", 0444, net->proc_net_stat,
+	pde = proc_ve_create_seq("rt_cache", 0444, net->proc_net_stat,
 			      &rt_cpu_seq_ops);
 	if (!pde)
 		goto err2;
 
 #ifdef CONFIG_IP_ROUTE_CLASSID
-	pde = proc_net_create_single("rt_acct", 0, net->proc_net,
+	pde = proc_ve_create_single("rt_acct", 0, net->proc_net,
 			rt_acct_proc_show);
 	if (!pde)
 		goto err3;
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 12ed6fad0bfd..1b0c0b31d2d1 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -2783,7 +2783,7 @@ static struct tcp_seq_afinfo tcp4_seq_afinfo = {
 
 static int __net_init tcp4_proc_init_net(struct net *net)
 {
-	if (!proc_net_create_net_data("tcp", 0444, net->proc_net, &tcp4_seq_ops,
+	if (!proc_ve_create_net_data("tcp", 0444, net->proc_net, &tcp4_seq_ops,
 			sizeof(struct tcp_iter_state), &tcp4_seq_afinfo))
 		return -ENOMEM;
 	return 0;
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 74a114fc82aa..b2d5f154adb9 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -3167,7 +3167,7 @@ static struct udp_seq_afinfo udp4_seq_afinfo = {
 
 static int __net_init udp4_proc_init_net(struct net *net)
 {
-	if (!proc_net_create_net_data("udp", 0444, net->proc_net, &udp_seq_ops,
+	if (!proc_ve_create_net_data("udp", 0444, net->proc_net, &udp_seq_ops,
 			sizeof(struct udp_iter_state), &udp4_seq_afinfo))
 		return -ENOMEM;
 	return 0;
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 11969c10f0c9..600c230e6418 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -4355,7 +4355,7 @@ static const struct seq_operations if6_seq_ops = {
 
 static int __net_init if6_proc_net_init(struct net *net)
 {
-	if (!proc_net_create_net("if_inet6", 0444, net->proc_net, &if6_seq_ops,
+	if (!proc_ve_create_net("if_inet6", 0444, net->proc_net, &if6_seq_ops,
 			sizeof(struct if6_iter_state)))
 		return -ENOMEM;
 	return 0;
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c
index 40a384667528..b06f729e7b88 100644
--- a/net/ipv6/anycast.c
+++ b/net/ipv6/anycast.c
@@ -584,7 +584,7 @@ static const struct seq_operations ac6_seq_ops = {
 
 int __net_init ac6_proc_init(struct net *net)
 {
-	if (!proc_net_create_net("anycast6", 0444, net->proc_net, &ac6_seq_ops,
+	if (!proc_ve_create_net("anycast6", 0444, net->proc_net, &ac6_seq_ops,
 			sizeof(struct ac6_iter_state)))
 		return -ENOMEM;
 
diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c
index 8bb246fd33d0..935993d3cf39 100644
--- a/net/ipv6/ip6_flowlabel.c
+++ b/net/ipv6/ip6_flowlabel.c
@@ -863,7 +863,7 @@ static const struct seq_operations ip6fl_seq_ops = {
 
 static int __net_init ip6_flowlabel_proc_init(struct net *net)
 {
-	if (!proc_net_create_net("ip6_flowlabel", 0444, net->proc_net,
+	if (!proc_ve_create_net("ip6_flowlabel", 0444, net->proc_net,
 			&ip6fl_seq_ops, sizeof(struct ip6fl_iter_state)))
 		return -ENOMEM;
 	return 0;
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index c04c4a2df3f6..1ff0207f1e22 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -1313,10 +1313,10 @@ static int __net_init ip6mr_net_init(struct net *net)
 
 #ifdef CONFIG_PROC_FS
 	err = -ENOMEM;
-	if (!proc_net_create_net("ip6_mr_vif", 0, net->proc_net, &ip6mr_vif_seq_ops,
+	if (!proc_ve_create_net("ip6_mr_vif", 0, net->proc_net, &ip6mr_vif_seq_ops,
 			sizeof(struct mr_vif_iter)))
 		goto proc_vif_fail;
-	if (!proc_net_create_net("ip6_mr_cache", 0, net->proc_net, &ipmr_mfc_seq_ops,
+	if (!proc_ve_create_net("ip6_mr_cache", 0, net->proc_net, &ipmr_mfc_seq_ops,
 			sizeof(struct mr_mfc_iter)))
 		goto proc_cache_fail;
 #endif
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c
index c7bd3faffae6..b4198b9ec74d 100644
--- a/net/ipv6/mcast.c
+++ b/net/ipv6/mcast.c
@@ -3087,10 +3087,10 @@ static int __net_init igmp6_proc_init(struct net *net)
 	int err;
 
 	err = -ENOMEM;
-	if (!proc_net_create_net("igmp6", 0444, net->proc_net, &igmp6_mc_seq_ops,
+	if (!proc_ve_create_net("igmp6", 0444, net->proc_net, &igmp6_mc_seq_ops,
 			sizeof(struct igmp6_mc_iter_state)))
 		goto out;
-	if (!proc_net_create_net("mcfilter6", 0444, net->proc_net,
+	if (!proc_ve_create_net("mcfilter6", 0444, net->proc_net,
 			&igmp6_mcf_seq_ops,
 			sizeof(struct igmp6_mcf_iter_state)))
 		goto out_proc_net_igmp6;
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c
index 51f71b37bba0..b8c0e84c075d 100644
--- a/net/ipv6/proc.c
+++ b/net/ipv6/proc.c
@@ -253,7 +253,7 @@ int snmp6_register_dev(struct inet6_dev *idev)
 	if (!net->mib.proc_net_devsnmp6)
 		return -ENOENT;
 
-	p = proc_net_create_single_data(idev->dev->name, 0444,
+	p = proc_ve_create_single_data(idev->dev->name, 0444,
 			net->mib.proc_net_devsnmp6, snmp6_dev_seq_show, idev);
 	if (!p)
 		return -ENOMEM;
@@ -276,11 +276,11 @@ int snmp6_unregister_dev(struct inet6_dev *idev)
 
 static int __net_init ipv6_proc_init_net(struct net *net)
 {
-	if (!proc_net_create_net_single("sockstat6", 0444, net->proc_net,
+	if (!proc_ve_create_net_single("sockstat6", 0444, net->proc_net,
 			sockstat6_seq_show, NULL))
 		return -ENOMEM;
 
-	if (!proc_net_create_net_single("snmp6", 0444, net->proc_net,
+	if (!proc_ve_create_net_single("snmp6", 0444, net->proc_net,
 			snmp6_seq_show, NULL))
 		goto proc_snmp6_fail;
 
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index 038555fd2d19..a2202abb770b 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -1278,7 +1278,7 @@ static const struct seq_operations raw6_seq_ops = {
 
 static int __net_init raw6_init_net(struct net *net)
 {
-	if (!proc_net_create_net_data("raw6", 0444, net->proc_net, &raw6_seq_ops,
+	if (!proc_ve_create_net_data("raw6", 0444, net->proc_net, &raw6_seq_ops,
 			sizeof(struct raw_iter_state), &raw_v6_hashinfo))
 		return -ENOMEM;
 
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index bb6ae082723b..a647d5f6968e 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -6575,9 +6575,9 @@ static void __net_exit ip6_route_net_exit(struct net *net)
 static int __net_init ip6_route_net_init_late(struct net *net)
 {
 #ifdef CONFIG_PROC_FS
-	proc_net_create_net("ipv6_route", 0, net->proc_net, &ipv6_route_seq_ops,
+	proc_ve_create_net("ipv6_route", 0, net->proc_net, &ipv6_route_seq_ops,
 			sizeof(struct ipv6_route_iter));
-	proc_net_create_net_single("rt6_stats", 0444, net->proc_net,
+	proc_ve_create_net_single("rt6_stats", 0444, net->proc_net,
 			rt6_stats_seq_show, NULL);
 #endif
 	return 0;
diff --git a/net/key/af_key.c b/net/key/af_key.c
index bb9d8cddd9eb..bcf5ae61ff09 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -3807,7 +3807,7 @@ static int __net_init pfkey_init_proc(struct net *net)
 {
 	struct proc_dir_entry *e;
 
-	e = proc_net_create_net("pfkey", 0, net->proc_net, &pfkey_seq_ops,
+	e = proc_ve_create_net("pfkey", 0, net->proc_net, &pfkey_seq_ops,
 			sizeof(struct seq_net_private));
 	if (e == NULL)
 		return -ENOMEM;
diff --git a/net/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c
index 9121c9162299..73171bdcb415 100644
--- a/net/l2tp/l2tp_ppp.c
+++ b/net/l2tp/l2tp_ppp.c
@@ -1618,7 +1618,7 @@ static __net_init int pppol2tp_init_net(struct net *net)
 	struct proc_dir_entry *pde;
 	int err = 0;
 
-	pde = proc_net_create_net("pppol2tp", 0444, net->proc_net,
+	pde = proc_ve_create_net("pppol2tp", 0444, net->proc_net,
 			      &pppol2tp_seq_ops, sizeof(struct pppol2tp_seq_data));
 	if (!pde) {
 		err = -ENOMEM;
diff --git a/net/netfilter/ipvs/ip_vs_app.c b/net/netfilter/ipvs/ip_vs_app.c
index 8644d2ff0d7e..7864c5e07281 100644
--- a/net/netfilter/ipvs/ip_vs_app.c
+++ b/net/netfilter/ipvs/ip_vs_app.c
@@ -599,7 +599,7 @@ static const struct seq_operations ip_vs_app_seq_ops = {
 int __net_init ip_vs_app_net_init(struct netns_ipvs *ipvs)
 {
 	INIT_LIST_HEAD(&ipvs->app_list);
-	proc_net_create_net("ip_vs_app", 0, ipvs->net->proc_net, &ip_vs_app_seq_ops,
+	proc_ve_create_net("ip_vs_app", 0, ipvs->net->proc_net, &ip_vs_app_seq_ops,
 			sizeof(struct seq_net_private));
 	return 0;
 }
diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c
index 51f3b997cd1f..61d8bef8462d 100644
--- a/net/netfilter/ipvs/ip_vs_conn.c
+++ b/net/netfilter/ipvs/ip_vs_conn.c
@@ -1447,9 +1447,9 @@ int __net_init ip_vs_conn_net_init(struct netns_ipvs *ipvs)
 {
 	atomic_set(&ipvs->conn_count, 0);
 
-	proc_net_create_net("ip_vs_conn", 0, ipvs->net->proc_net,
+	proc_ve_create_net("ip_vs_conn", 0, ipvs->net->proc_net,
 			&ip_vs_conn_seq_ops, sizeof(struct ip_vs_iter_state));
-	proc_net_create_net("ip_vs_conn_sync", 0, ipvs->net->proc_net,
+	proc_ve_create_net("ip_vs_conn_sync", 0, ipvs->net->proc_net,
 			&ip_vs_conn_sync_seq_ops,
 			sizeof(struct ip_vs_iter_state));
 	return 0;
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
index afbeb852d91c..50deab9ab739 100644
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -4174,13 +4174,13 @@ int __net_init ip_vs_control_net_init(struct netns_ipvs *ipvs)
 	spin_lock_init(&ipvs->tot_stats.lock);
 
 #ifdef CONFIG_PROC_FS
-	if (!proc_net_create_net("ip_vs", 0, ipvs->net->proc_net,
+	if (!proc_ve_create_net("ip_vs", 0, ipvs->net->proc_net,
 			     &ip_vs_info_seq_ops, sizeof(struct ip_vs_iter)))
 		goto err_vs;
-	if (!proc_net_create_net_single("ip_vs_stats", 0, ipvs->net->proc_net,
+	if (!proc_ve_create_net_single("ip_vs_stats", 0, ipvs->net->proc_net,
 				    ip_vs_stats_show, NULL))
 		goto err_stats;
-	if (!proc_net_create_net_single("ip_vs_stats_percpu", 0,
+	if (!proc_ve_create_net_single("ip_vs_stats_percpu", 0,
 				    ipvs->net->proc_net,
 				    ip_vs_stats_percpu_show, NULL))
 		goto err_percpu;
diff --git a/net/netfilter/nf_conntrack_expect.c b/net/netfilter/nf_conntrack_expect.c
index 8f10660e2570..1e4e87625491 100644
--- a/net/netfilter/nf_conntrack_expect.c
+++ b/net/netfilter/nf_conntrack_expect.c
@@ -686,7 +686,7 @@ static int exp_proc_init(struct net *net)
 	kuid_t root_uid;
 	kgid_t root_gid;
 
-	proc = proc_net_create_net("nf_conntrack_expect", 0440, net->proc_net,
+	proc = proc_ve_create_net("nf_conntrack_expect", 0440, net->proc_net,
 			&exp_seq_ops, sizeof(struct ct_expect_iter_state));
 	if (!proc)
 		return -ENOMEM;
diff --git a/net/netfilter/nf_conntrack_standalone.c b/net/netfilter/nf_conntrack_standalone.c
index 89570b0a542f..4cb5f00f8820 100644
--- a/net/netfilter/nf_conntrack_standalone.c
+++ b/net/netfilter/nf_conntrack_standalone.c
@@ -473,7 +473,7 @@ static int nf_conntrack_standalone_init_proc(struct net *net)
 	kuid_t root_uid;
 	kgid_t root_gid;
 
-	pde = proc_net_create_net("nf_conntrack", 0440, net->proc_net, &ct_seq_ops,
+	pde = proc_ve_create_net("nf_conntrack", 0440, net->proc_net, &ct_seq_ops,
 			sizeof(struct ct_iter_state));
 	if (!pde)
 		goto out_nf_conntrack;
@@ -483,7 +483,7 @@ static int nf_conntrack_standalone_init_proc(struct net *net)
 	if (uid_valid(root_uid) && gid_valid(root_gid))
 		proc_set_user(pde, root_uid, root_gid);
 
-	pde = proc_net_create_net("nf_conntrack", 0444, net->proc_net_stat,
+	pde = proc_ve_create_net("nf_conntrack", 0444, net->proc_net_stat,
 			&ct_cpu_seq_ops, sizeof(struct seq_net_private));
 	if (!pde)
 		goto out_stat_nf_conntrack;
diff --git a/net/netfilter/nf_synproxy_core.c b/net/netfilter/nf_synproxy_core.c
index 5759f146a24f..08e1acaf79b4 100644
--- a/net/netfilter/nf_synproxy_core.c
+++ b/net/netfilter/nf_synproxy_core.c
@@ -311,7 +311,7 @@ static const struct seq_operations synproxy_cpu_seq_ops = {
 
 static int __net_init synproxy_proc_init(struct net *net)
 {
-	if (!proc_net_create_net("synproxy", 0444, net->proc_net_stat,
+	if (!proc_ve_create_net("synproxy", 0444, net->proc_net_stat,
 			&synproxy_cpu_seq_ops, sizeof(struct seq_net_private)))
 		return -ENOMEM;
 	return 0;
diff --git a/net/netfilter/x_tables.c b/net/netfilter/x_tables.c
index acb2dda97870..ecaf51f1e8f2 100644
--- a/net/netfilter/x_tables.c
+++ b/net/netfilter/x_tables.c
@@ -1806,7 +1806,7 @@ int xt_proto_init(struct net *net, u_int8_t af)
 
 	strlcpy(buf, xt_prefix[af], sizeof(buf));
 	strlcat(buf, FORMAT_TABLES, sizeof(buf));
-	proc = proc_net_create_net_data(buf, mode, net->proc_net, &xt_table_seq_ops,
+	proc = proc_ve_create_net_data(buf, mode, net->proc_net, &xt_table_seq_ops,
 			sizeof(struct seq_net_private),
 			(void *)(unsigned long)af);
 	if (!proc)
@@ -1816,7 +1816,7 @@ int xt_proto_init(struct net *net, u_int8_t af)
 
 	strlcpy(buf, xt_prefix[af], sizeof(buf));
 	strlcat(buf, FORMAT_MATCHES, sizeof(buf));
-	proc = proc_net_create_seq_private(buf, mode, net->proc_net,
+	proc = proc_ve_create_seq_private(buf, mode, net->proc_net,
 			&xt_match_seq_ops, sizeof(struct nf_mttg_trav),
 			(void *)(unsigned long)af);
 	if (!proc)
@@ -1826,7 +1826,7 @@ int xt_proto_init(struct net *net, u_int8_t af)
 
 	strlcpy(buf, xt_prefix[af], sizeof(buf));
 	strlcat(buf, FORMAT_TARGETS, sizeof(buf));
-	proc = proc_net_create_seq_private(buf, mode, net->proc_net,
+	proc = proc_ve_create_seq_private(buf, mode, net->proc_net,
 			 &xt_target_seq_ops, sizeof(struct nf_mttg_trav),
 			 (void *)(unsigned long)af);
 	if (!proc)
diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c
index 013812100c44..fe65417b88fd 100644
--- a/net/netfilter/xt_hashlimit.c
+++ b/net/netfilter/xt_hashlimit.c
@@ -338,7 +338,7 @@ static int htable_create(struct net *net, struct hashlimit_cfg3 *cfg,
 		ops = &dl_seq_ops;
 	}
 
-	hinfo->pde = proc_net_create_seq_data(name, 0,
+	hinfo->pde = proc_ve_create_seq_data(name, 0,
 		(family == NFPROTO_IPV4) ?
 		hashlimit_net->ipt_hashlimit : hashlimit_net->ip6t_hashlimit,
 		ops, hinfo);
diff --git a/net/netfilter/xt_recent.c b/net/netfilter/xt_recent.c
index c84efe7e7d7a..91a3e803f59b 100644
--- a/net/netfilter/xt_recent.c
+++ b/net/netfilter/xt_recent.c
@@ -412,7 +412,7 @@ static int recent_mt_check(const struct xt_mtchk_param *par,
 		ret = -EINVAL;
 		goto out;
 	}
-	pde = proc_net_create_data(t->name, ip_list_perms, recent_net->xt_recent,
+	pde = proc_ve_create_data(t->name, ip_list_perms, recent_net->xt_recent,
 			       &recent_mt_proc_ops, t);
 	if (pde == NULL) {
 		recent_table_free(t);
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 4dc2b319ed5c..67766a04add0 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -2853,7 +2853,7 @@ static const struct net_proto_family netlink_family_ops = {
 static int __net_init netlink_net_init(struct net *net)
 {
 #ifdef CONFIG_PROC_FS
-	if (!proc_net_create_net("netlink", 0, net->proc_net, &netlink_seq_ops,
+	if (!proc_ve_create_net("netlink", 0, net->proc_net, &netlink_seq_ops,
 			sizeof(struct nl_seq_iter)))
 		return -ENOMEM;
 #endif
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 83d184ed9114..0b002c1b1a91 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -4640,7 +4640,7 @@ static int __net_init packet_net_init(struct net *net)
 	INIT_HLIST_HEAD(&net->packet.sklist);
 
 #ifdef CONFIG_PROC_FS
-	if (!proc_net_create_net("packet", 0, net->proc_net, &packet_seq_ops,
+	if (!proc_ve_create_net("packet", 0, net->proc_net, &packet_seq_ops,
 			sizeof(struct seq_net_private)))
 		return -ENOMEM;
 #endif /* CONFIG_PROC_FS */
diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c
index ed28d9a08e51..dcf3292900a6 100644
--- a/net/phonet/pn_dev.c
+++ b/net/phonet/pn_dev.c
@@ -304,7 +304,7 @@ static int __net_init phonet_init_net(struct net *net)
 {
 	struct phonet_net *pnn = phonet_pernet(net);
 
-	if (!proc_net_create_net("phonet", 0, net->proc_net, &pn_sock_seq_ops,
+	if (!proc_ve_create_net("phonet", 0, net->proc_net, &pn_sock_seq_ops,
 			sizeof(struct seq_net_private)))
 		return -ENOMEM;
 
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index 63f8afafaa3d..da336b71e905 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -2245,7 +2245,7 @@ static int __net_init psched_net_init(struct net *net)
 {
 	struct proc_dir_entry *e;
 
-	e = proc_net_create_single("psched", 0, net->proc_net, psched_show);
+	e = proc_ve_create_single("psched", 0, net->proc_net, psched_show);
 	if (e == NULL)
 		return -ENOMEM;
 
diff --git a/net/sctp/objcnt.c b/net/sctp/objcnt.c
index 3c60e0bbcbad..0024141c3346 100644
--- a/net/sctp/objcnt.c
+++ b/net/sctp/objcnt.c
@@ -98,7 +98,7 @@ void sctp_dbg_objcnt_init(struct net *net)
 {
 	struct proc_dir_entry *ent;
 
-	ent = proc_net_create_seq("sctp_dbg_objcnt", 0,
+	ent = proc_ve_create_seq("sctp_dbg_objcnt", 0,
 			  net->sctp.proc_net_sctp, &sctp_objcnt_seq_ops);
 	if (!ent)
 		pr_warn("sctp_dbg_objcnt: Unable to create /proc entry.\n");
diff --git a/net/sctp/proc.c b/net/sctp/proc.c
index 9b0e294582f4..e3bb0047371b 100644
--- a/net/sctp/proc.c
+++ b/net/sctp/proc.c
@@ -378,16 +378,16 @@ int __net_init sctp_proc_init(struct net *net)
 	net->sctp.proc_net_sctp = proc_net_mkdir(net, "sctp", net->proc_net);
 	if (!net->sctp.proc_net_sctp)
 		return -ENOMEM;
-	if (!proc_net_create_net_single("snmp", 0444, net->sctp.proc_net_sctp,
+	if (!proc_ve_create_net_single("snmp", 0444, net->sctp.proc_net_sctp,
 			 sctp_snmp_seq_show, NULL))
 		goto cleanup;
-	if (!proc_net_create_net("eps", 0444, net->sctp.proc_net_sctp,
+	if (!proc_ve_create_net("eps", 0444, net->sctp.proc_net_sctp,
 			&sctp_eps_ops, sizeof(struct seq_net_private)))
 		goto cleanup;
-	if (!proc_net_create_net("assocs", 0444, net->sctp.proc_net_sctp,
+	if (!proc_ve_create_net("assocs", 0444, net->sctp.proc_net_sctp,
 			&sctp_assoc_ops, sizeof(struct sctp_ht_iter)))
 		goto cleanup;
-	if (!proc_net_create_net("remaddr", 0444, net->sctp.proc_net_sctp,
+	if (!proc_ve_create_net("remaddr", 0444, net->sctp.proc_net_sctp,
 			&sctp_remaddr_ops, sizeof(struct sctp_ht_iter)))
 		goto cleanup;
 	return 0;
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c
index 6d5ac9f968ae..368ecd01715e 100644
--- a/net/sunrpc/cache.c
+++ b/net/sunrpc/cache.c
@@ -1668,19 +1668,19 @@ static int create_cache_proc_entries(struct cache_detail *cd, struct net *net)
 	if (cd->procfs == NULL)
 		goto out_nomem;
 
-	p = proc_net_create_data("flush", S_IFREG | 0600,
+	p = proc_ve_create_data("flush", S_IFREG | 0600,
 			     cd->procfs, &cache_flush_proc_ops, cd);
 	if (p == NULL)
 		goto out_nomem;
 
 	if (cd->cache_request || cd->cache_parse) {
-		p = proc_net_create_data("channel", S_IFREG | 0600, cd->procfs,
+		p = proc_ve_create_data("channel", S_IFREG | 0600, cd->procfs,
 				     &cache_channel_proc_ops, cd);
 		if (p == NULL)
 			goto out_nomem;
 	}
 	if (cd->cache_show) {
-		p = proc_net_create_data("content", S_IFREG | 0400, cd->procfs,
+		p = proc_ve_create_data("content", S_IFREG | 0400, cd->procfs,
 				     &content_proc_ops, cd);
 		if (p == NULL)
 			goto out_nomem;
diff --git a/net/sunrpc/stats.c b/net/sunrpc/stats.c
index 45541aa49c98..c962e4854c2c 100644
--- a/net/sunrpc/stats.c
+++ b/net/sunrpc/stats.c
@@ -286,7 +286,7 @@ do_register(struct net *net, const char *name, void *data,
 
 	dprintk("RPC:       registering /proc/net/rpc/%s\n", name);
 	sn = net_generic(net, sunrpc_net_id);
-	return proc_net_create_data(name, 0, sn->proc_net_rpc, proc_ops, data);
+	return proc_ve_create_data(name, 0, sn->proc_net_rpc, proc_ops, data);
 }
 
 struct proc_dir_entry *
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 742f3ba59e1d..64da94952e68 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -2973,7 +2973,7 @@ static int __net_init unix_net_init(struct net *net)
 		goto out;
 
 #ifdef CONFIG_PROC_FS
-	if (!proc_net_create_net("unix", 0, net->proc_net, &unix_seq_ops,
+	if (!proc_ve_create_net("unix", 0, net->proc_net, &unix_seq_ops,
 			sizeof(struct seq_net_private))) {
 		unix_sysctl_unregister(net);
 		goto out;
diff --git a/net/wireless/wext-proc.c b/net/wireless/wext-proc.c
index 81e35aac09cc..bc6167127446 100644
--- a/net/wireless/wext-proc.c
+++ b/net/wireless/wext-proc.c
@@ -129,7 +129,7 @@ static const struct seq_operations wireless_seq_ops = {
 int __net_init wext_proc_init(struct net *net)
 {
 	/* Create /proc/net/wireless entry */
-	if (!proc_net_create_net("wireless", 0444, net->proc_net,
+	if (!proc_ve_create_net("wireless", 0444, net->proc_net,
 			&wireless_seq_ops, sizeof(struct seq_net_private)))
 		return -ENOMEM;
 
diff --git a/net/xfrm/xfrm_proc.c b/net/xfrm/xfrm_proc.c
index b8fa652313fd..2a93a6d3a764 100644
--- a/net/xfrm/xfrm_proc.c
+++ b/net/xfrm/xfrm_proc.c
@@ -63,7 +63,7 @@ static int xfrm_statistics_seq_show(struct seq_file *seq, void *v)
 
 int __net_init xfrm_proc_init(struct net *net)
 {
-	if (!proc_net_create_net_single("xfrm_stat", 0444, net->proc_net,
+	if (!proc_ve_create_net_single("xfrm_stat", 0444, net->proc_net,
 			 xfrm_statistics_seq_show, NULL))
 		return -ENOMEM;
 	return 0;
-- 
2.31.1



More information about the Devel mailing list