imamnurby/smpl_train_seed8 huggingface dataset:
--- initial
+++ final
@@ -1,16 +1,16 @@
 static __init int dccpprobe_init(void) {
   int ret = -ENOMEM;
   init_waitqueue_head(&dccpw.wait);
   spin_lock_init(&dccpw.lock);
   if (kfifo_alloc(&dccpw.fifo, bufsize, GFP_KERNEL)) return ret;
-  if (!proc_net_fops_create(&init_net, procname, S_IRUSR, &dccpprobe_fops)) goto err0;
+  if (!proc_create(procname, S_IRUSR, init_net.proc_net, &dccpprobe_fops)) goto err0;
   ret = setup_jprobe();
   if (ret) goto err1;
   pr_info("DCCP watch registered (port=%d)\n", port);
   return 0;
 err1:
   proc_net_remove(&init_net, procname);
 err0:
   kfifo_free(&dccpw.fifo);
   return ret;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(&net, e1, e2, e3)
+ proc_create(e1, e2, net.proc_net, e3)
--- initial
+++ final
@@ -1,4 +1,4 @@
 static int __net_init dev_mc_net_init(struct net *net) {
-  if (!proc_net_fops_create(net, "dev_mcast", 0, &dev_mc_seq_fops)) return -ENOMEM;
+  if (!proc_create("dev_mcast", 0, net->proc_net, &dev_mc_seq_fops)) return -ENOMEM;
   return 0;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,17 +1,17 @@
 static int __net_init dev_proc_net_init(struct net *net) {
   int rc = -ENOMEM;
-  if (!proc_net_fops_create(net, "dev", S_IRUGO, &dev_seq_fops)) goto out;
-  if (!proc_net_fops_create(net, "softnet_stat", S_IRUGO, &softnet_seq_fops)) goto out_dev;
-  if (!proc_net_fops_create(net, "ptype", S_IRUGO, &ptype_seq_fops)) goto out_softnet;
+  if (!proc_create("dev", S_IRUGO, net->proc_net, &dev_seq_fops)) goto out;
+  if (!proc_create("softnet_stat", S_IRUGO, net->proc_net, &softnet_seq_fops)) goto out_dev;
+  if (!proc_create("ptype", S_IRUGO, net->proc_net, &ptype_seq_fops)) goto out_softnet;
   if (wext_proc_init(net)) goto out_ptype;
   rc = 0;
 out:
   return rc;
 out_ptype:
   proc_net_remove(net, "ptype");
 out_softnet:
   proc_net_remove(net, "softnet_stat");
 out_dev:
   proc_net_remove(net, "dev");
   goto out;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,23 +1,23 @@
 void __init dn_dev_init(void) {
   if (addr[0] > 63 || addr[0] < 0) {
     printk(KERN_ERR "DECnet: Area must be between 0 and 63");
     return;
   }
   if (addr[1] > 1023 || addr[1] < 0) {
     printk(KERN_ERR "DECnet: Node must be between 0 and 1023");
     return;
   }
   decnet_address = cpu_to_le16((addr[0] << 10) | addr[1]);
   dn_dev_devices_on();
   rtnl_register(PF_DECnet, RTM_NEWADDR, dn_nl_newaddr, NULL, NULL);
   rtnl_register(PF_DECnet, RTM_DELADDR, dn_nl_deladdr, NULL, NULL);
   rtnl_register(PF_DECnet, RTM_GETADDR, NULL, dn_nl_dump_ifaddr, NULL);
-  proc_net_fops_create(&init_net, "decnet_dev", S_IRUGO, &dn_dev_seq_fops);
+  proc_create("decnet_dev", S_IRUGO, init_net.proc_net, &dn_dev_seq_fops);
 #ifdef CONFIG_SYSCTL
   {
     int i;
     for (i = 0; i < DN_DEV_LIST_SIZE; i++)
       dn_dev_sysctl_register(NULL, &dn_dev_list[i]);
   }
 #endif /* CONFIG_SYSCTL */
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(&net, e1, e2, e3)
+ proc_create(e1, e2, net.proc_net, e3)
--- initial
+++ final
@@ -1,4 +1,4 @@
 void __init dn_neigh_init(void) {
   neigh_table_init(&dn_neigh_table);
-  proc_net_fops_create(&init_net, "decnet_neigh", S_IRUGO, &dn_neigh_seq_fops);
+  proc_create("decnet_neigh", S_IRUGO, init_net.proc_net, &dn_neigh_seq_fops);
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(&net, e1, e2, e3)
+ proc_create(e1, e2, net.proc_net, e3)
--- initial
+++ final
@@ -1,37 +1,37 @@
 void __init dn_route_init(void) {
   int i, goal, order;
   dn_dst_ops.kmem_cachep = kmem_cache_create("dn_dst_cache", sizeof(struct dn_route), 0, SLAB_HWCACHE_ALIGN | SLAB_PANIC, NULL);
   dst_entries_init(&dn_dst_ops);
   setup_timer(&dn_route_timer, dn_dst_check_expire, 0);
   dn_route_timer.expires = jiffies + decnet_dst_gc_interval * HZ;
   add_timer(&dn_route_timer);
   goal = totalram_pages >> (26 - PAGE_SHIFT);
   for (order = 0; (1UL << order) < goal; order++)
     /* NOTHING */;
   /*
    * Only want 1024 entries max, since the table is very, very unlikely
    * to be larger than that.
    */
   while (order && ((((1UL << order) * PAGE_SIZE) / sizeof(struct dn_rt_hash_bucket)) >= 2048))
     order--;
   do {
     dn_rt_hash_mask = (1UL << order) * PAGE_SIZE / sizeof(struct dn_rt_hash_bucket);
     while (dn_rt_hash_mask & (dn_rt_hash_mask - 1))
       dn_rt_hash_mask--;
     dn_rt_hash_table = (struct dn_rt_hash_bucket *)__get_free_pages(GFP_ATOMIC, order);
   } while (dn_rt_hash_table == NULL && --order > 0);
   if (!dn_rt_hash_table) panic("Failed to allocate DECnet route cache hash table\n");
   printk(KERN_INFO "DECnet: Routing cache hash table of %u buckets, %ldKbytes\n", dn_rt_hash_mask, (long)(dn_rt_hash_mask * sizeof(struct dn_rt_hash_bucket)) / 1024);
   dn_rt_hash_mask--;
   for (i = 0; i <= dn_rt_hash_mask; i++) {
     spin_lock_init(&dn_rt_hash_table[i].lock);
     dn_rt_hash_table[i].chain = NULL;
   }
   dn_dst_ops.gc_thresh = (dn_rt_hash_mask + 1);
-  proc_net_fops_create(&init_net, "decnet_cache", S_IRUGO, &dn_rt_cache_seq_fops);
+  proc_create("decnet_cache", S_IRUGO, init_net.proc_net, &dn_rt_cache_seq_fops);
 #ifdef CONFIG_DECNET_ROUTER
   rtnl_register(PF_DECnet, RTM_GETROUTE, dn_cache_getroute, dn_fib_dump, NULL);
 #else
   rtnl_register(PF_DECnet, RTM_GETROUTE, dn_cache_getroute, dn_cache_dump, NULL);
 #endif
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(&net, e1, e2, e3)
+ proc_create(e1, e2, net.proc_net, e3)
--- initial
+++ final
@@ -1,12 +1,12 @@
 int __net_init fib_proc_init(struct net *net) {
-  if (!proc_net_fops_create(net, "fib_trie", S_IRUGO, &fib_trie_fops)) goto out1;
-  if (!proc_net_fops_create(net, "fib_triestat", S_IRUGO, &fib_triestat_fops)) goto out2;
-  if (!proc_net_fops_create(net, "route", S_IRUGO, &fib_route_fops)) goto out3;
+  if (!proc_create("fib_trie", S_IRUGO, net->proc_net, &fib_trie_fops)) goto out1;
+  if (!proc_create("fib_triestat", S_IRUGO, net->proc_net, &fib_triestat_fops)) goto out2;
+  if (!proc_create("route", S_IRUGO, net->proc_net, &fib_route_fops)) goto out3;
   return 0;
 out3:
   proc_net_remove(net, "fib_triestat");
 out2:
   proc_net_remove(net, "fib_trie");
 out1:
   return -ENOMEM;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,12 +1,12 @@
 static int __net_init igmp_net_init(struct net *net) {
   struct proc_dir_entry *pde;
-  pde = proc_net_fops_create(net, "igmp", S_IRUGO, &igmp_mc_seq_fops);
+  pde = proc_create("igmp", S_IRUGO, net->proc_net, &igmp_mc_seq_fops);
   if (!pde) goto out_igmp;
-  pde = proc_net_fops_create(net, "mcfilter", S_IRUGO, &igmp_mcf_seq_fops);
+  pde = proc_create("mcfilter", S_IRUGO, net->proc_net, &igmp_mcf_seq_fops);
   if (!pde) goto out_mcfilter;
   return 0;
 out_mcfilter:
   proc_net_remove(net, "igmp");
 out_igmp:
   return -ENOMEM;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,19 +1,19 @@
 static int __net_init ip6mr_net_init(struct net *net) {
   int err;
   err = ip6mr_rules_init(net);
   if (err < 0) goto fail;
 #ifdef CONFIG_PROC_FS
   err = -ENOMEM;
-  if (!proc_net_fops_create(net, "ip6_mr_vif", 0, &ip6mr_vif_fops)) goto proc_vif_fail;
-  if (!proc_net_fops_create(net, "ip6_mr_cache", 0, &ip6mr_mfc_fops)) goto proc_cache_fail;
+  if (!proc_create("ip6_mr_vif", 0, net->proc_net, &ip6mr_vif_fops)) goto proc_vif_fail;
+  if (!proc_create("ip6_mr_cache", 0, net->proc_net, &ip6mr_mfc_fops)) goto proc_cache_fail;
 #endif
   return 0;
 #ifdef CONFIG_PROC_FS
 proc_cache_fail:
   proc_net_remove(net, "ip6_mr_vif");
 proc_vif_fail:
   ip6mr_rules_exit(net);
 #endif
 fail:
   return err;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,6 +1,6 @@
 int __net_init ip_vs_app_net_init(struct net *net) {
   struct netns_ipvs *ipvs = net_ipvs(net);
   INIT_LIST_HEAD(&ipvs->app_list);
-  proc_net_fops_create(net, "ip_vs_app", 0, &ip_vs_app_fops);
+  proc_create("ip_vs_app", 0, net->proc_net, &ip_vs_app_fops);
   return 0;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,7 +1,7 @@
 int __net_init ip_vs_conn_net_init(struct net *net) {
   struct netns_ipvs *ipvs = net_ipvs(net);
   atomic_set(&ipvs->conn_count, 0);
-  proc_net_fops_create(net, "ip_vs_conn", 0, &ip_vs_conn_fops);
-  proc_net_fops_create(net, "ip_vs_conn_sync", 0, &ip_vs_conn_sync_fops);
+  proc_create("ip_vs_conn", 0, net->proc_net, &ip_vs_conn_fops);
+  proc_create("ip_vs_conn_sync", 0, net->proc_net, &ip_vs_conn_sync_fops);
   return 0;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,23 +1,23 @@
 int __net_init ip_vs_control_net_init(struct net *net) {
   int idx;
   struct netns_ipvs *ipvs = net_ipvs(net);
   rwlock_init(&ipvs->rs_lock);
   /* Initialize rs_table */
   for (idx = 0; idx < IP_VS_RTAB_SIZE; idx++)
     INIT_LIST_HEAD(&ipvs->rs_table[idx]);
   INIT_LIST_HEAD(&ipvs->dest_trash);
   atomic_set(&ipvs->ftpsvc_counter, 0);
   atomic_set(&ipvs->nullsvc_counter, 0);
   /* procfs stats */
   ipvs->tot_stats.cpustats = alloc_percpu(struct ip_vs_cpu_stats);
   if (!ipvs->tot_stats.cpustats) return -ENOMEM;
   spin_lock_init(&ipvs->tot_stats.lock);
-  proc_net_fops_create(net, "ip_vs", 0, &ip_vs_info_fops);
-  proc_net_fops_create(net, "ip_vs_stats", 0, &ip_vs_stats_fops);
-  proc_net_fops_create(net, "ip_vs_stats_percpu", 0, &ip_vs_stats_percpu_fops);
+  proc_create("ip_vs", 0, net->proc_net, &ip_vs_info_fops);
+  proc_create("ip_vs_stats", 0, net->proc_net, &ip_vs_stats_fops);
+  proc_create("ip_vs_stats_percpu", 0, net->proc_net, &ip_vs_stats_percpu_fops);
   if (ip_vs_control_net_init_sysctl(net)) goto err;
   return 0;
 err:
   free_percpu(ipvs->tot_stats.cpustats);
   return -ENOMEM;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,19 +1,19 @@
 static int __net_init ipmr_net_init(struct net *net) {
   int err;
   err = ipmr_rules_init(net);
   if (err < 0) goto fail;
 #ifdef CONFIG_PROC_FS
   err = -ENOMEM;
-  if (!proc_net_fops_create(net, "ip_mr_vif", 0, &ipmr_vif_fops)) goto proc_vif_fail;
-  if (!proc_net_fops_create(net, "ip_mr_cache", 0, &ipmr_mfc_fops)) goto proc_cache_fail;
+  if (!proc_create("ip_mr_vif", 0, net->proc_net, &ipmr_vif_fops)) goto proc_vif_fail;
+  if (!proc_create("ip_mr_cache", 0, net->proc_net, &ipmr_mfc_fops)) goto proc_cache_fail;
 #endif
   return 0;
 #ifdef CONFIG_PROC_FS
 proc_cache_fail:
   proc_net_remove(net, "ip_mr_vif");
 proc_vif_fail:
   ipmr_rules_exit(net);
 #endif
 fail:
   return err;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,12 +1,12 @@
 static __net_init int ip_proc_init_net(struct net *net) {
-  if (!proc_net_fops_create(net, "sockstat", S_IRUGO, &sockstat_seq_fops)) goto out_sockstat;
-  if (!proc_net_fops_create(net, "netstat", S_IRUGO, &netstat_seq_fops)) goto out_netstat;
-  if (!proc_net_fops_create(net, "snmp", S_IRUGO, &snmp_seq_fops)) goto out_snmp;
+  if (!proc_create("sockstat", S_IRUGO, net->proc_net, &sockstat_seq_fops)) goto out_sockstat;
+  if (!proc_create("netstat", S_IRUGO, net->proc_net, &netstat_seq_fops)) goto out_netstat;
+  if (!proc_create("snmp", S_IRUGO, net->proc_net, &snmp_seq_fops)) goto out_snmp;
   return 0;
 out_snmp:
   proc_net_remove(net, "netstat");
 out_netstat:
   proc_net_remove(net, "sockstat");
 out_sockstat:
   return -ENOMEM;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,4 +1,4 @@
 static __net_init int raw_init_net(struct net *net) {
-  if (!proc_net_fops_create(net, "raw", S_IRUGO, &raw_seq_fops)) return -ENOMEM;
+  if (!proc_create("raw", S_IRUGO, net->proc_net, &raw_seq_fops)) return -ENOMEM;
   return 0;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,20 +1,20 @@
 static int __net_init ip_rt_do_proc_init(struct net *net) {
   struct proc_dir_entry *pde;
-  pde = proc_net_fops_create(net, "rt_cache", S_IRUGO, &rt_cache_seq_fops);
+  pde = proc_create("rt_cache", S_IRUGO, net->proc_net, &rt_cache_seq_fops);
   if (!pde) goto err1;
   pde = proc_create("rt_cache", S_IRUGO, net->proc_net_stat, &rt_cpu_seq_fops);
   if (!pde) goto err2;
 #ifdef CONFIG_IP_ROUTE_CLASSID
   pde = proc_create("rt_acct", 0, net->proc_net, &rt_acct_proc_fops);
   if (!pde) goto err3;
 #endif
   return 0;
 #ifdef CONFIG_IP_ROUTE_CLASSID
 err3:
   remove_proc_entry("rt_cache", net->proc_net_stat);
 #endif
 err2:
   remove_proc_entry("rt_cache", net->proc_net);
 err1:
   return -ENOMEM;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,11 +1,11 @@
 static __net_init int pppol2tp_init_net(struct net *net) {
   struct proc_dir_entry *pde;
   int err = 0;
-  pde = proc_net_fops_create(net, "pppol2tp", S_IRUGO, &pppol2tp_proc_fops);
+  pde = proc_create("pppol2tp", S_IRUGO, net->proc_net, &pppol2tp_proc_fops);
   if (!pde) {
     err = -ENOMEM;
     goto out;
   }
 out:
   return err;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,8 +1,8 @@
 static int exp_proc_init(struct net *net) {
 #ifdef CONFIG_NF_CONNTRACK_PROCFS
   struct proc_dir_entry *proc;
-  proc = proc_net_fops_create(net, "nf_conntrack_expect", 0440, &exp_file_ops);
+  proc = proc_create("nf_conntrack_expect", 0440, net->proc_net, &exp_file_ops);
   if (!proc) return -ENOMEM;
 #endif /* CONFIG_NF_CONNTRACK_PROCFS */
   return 0;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,16 +1,16 @@
 static int __net_init ip_conntrack_net_init(struct net *net) {
   struct proc_dir_entry *proc, *proc_exp, *proc_stat;
-  proc = proc_net_fops_create(net, "ip_conntrack", 0440, &ct_file_ops);
+  proc = proc_create("ip_conntrack", 0440, net->proc_net, &ct_file_ops);
   if (!proc) goto err1;
-  proc_exp = proc_net_fops_create(net, "ip_conntrack_expect", 0440, &ip_exp_file_ops);
+  proc_exp = proc_create("ip_conntrack_expect", 0440, net->proc_net, &ip_exp_file_ops);
   if (!proc_exp) goto err2;
   proc_stat = proc_create("ip_conntrack", S_IRUGO, net->proc_net_stat, &ct_cpu_seq_fops);
   if (!proc_stat) goto err3;
   return 0;
 err3:
   proc_net_remove(net, "ip_conntrack_expect");
 err2:
   proc_net_remove(net, "ip_conntrack");
 err1:
   return -ENOMEM;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,7 +1,7 @@
 static int ping_proc_register(struct net *net) {
   struct proc_dir_entry *p;
   int rc = 0;
-  p = proc_net_fops_create(net, "icmp", S_IRUGO, &ping_seq_fops);
+  p = proc_create("icmp", S_IRUGO, net->proc_net, &ping_seq_fops);
   if (!p) rc = -ENOMEM;
   return rc;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,9 +1,9 @@
 int __init phonet_device_init(void) {
   int err = register_pernet_subsys(&phonet_net_ops);
   if (err) return err;
-  proc_net_fops_create(&init_net, "pnresource", 0, &pn_res_seq_fops);
+  proc_create("pnresource", 0, init_net.proc_net, &pn_res_seq_fops);
   register_netdevice_notifier(&phonet_device_notifier);
   err = phonet_netlink_register();
   if (err) phonet_device_exit();
   return err;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(&net, e1, e2, e3)
+ proc_create(e1, e2, net.proc_net, e3)
--- initial
+++ final
@@ -1,8 +1,8 @@
 static int __net_init phonet_init_net(struct net *net) {
   struct phonet_net *pnn = phonet_pernet(net);
-  if (!proc_net_fops_create(net, "phonet", 0, &pn_sock_seq_fops)) return -ENOMEM;
+  if (!proc_create("phonet", 0, net->proc_net, &pn_sock_seq_fops)) return -ENOMEM;
   INIT_LIST_HEAD(&pnn->pndevs.list);
   mutex_init(&pnn->pndevs.lock);
   mutex_init(&pnn->routes.lock);
   return 0;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,10 +1,10 @@
 static __net_init int pppoe_init_net(struct net *net) {
   struct pppoe_net *pn = pppoe_pernet(net);
   struct proc_dir_entry *pde;
   rwlock_init(&pn->hash_lock);
-  pde = proc_net_fops_create(net, "pppoe", S_IRUGO, &pppoe_seq_fops);
+  pde = proc_create("pppoe", S_IRUGO, net->proc_net, &pppoe_seq_fops);
 #ifdef CONFIG_PROC_FS
   if (!pde) return -ENOMEM;
 #endif
   return 0;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,21 +1,21 @@
 static __init int sctpprobe_init(void) {
   int ret = -ENOMEM;
   /* Warning: if the function signature of sctp_sf_eat_sack_6_2,
    * has been changed, you also have to change the signature of
    * jsctp_sf_eat_sack, otherwise you end up right here!
    */
   BUILD_BUG_ON(__same_type(sctp_sf_eat_sack_6_2, jsctp_sf_eat_sack) == 0);
   init_waitqueue_head(&sctpw.wait);
   spin_lock_init(&sctpw.lock);
   if (kfifo_alloc(&sctpw.fifo, bufsize, GFP_KERNEL)) return ret;
-  if (!proc_net_fops_create(&init_net, procname, S_IRUSR, &sctpprobe_fops)) goto free_kfifo;
+  if (!proc_create(procname, S_IRUSR, init_net.proc_net, &sctpprobe_fops)) goto free_kfifo;
   ret = register_jprobe(&sctp_recv_probe);
   if (ret) goto remove_proc;
   pr_info("probe registered (port=%d)\n", port);
   return 0;
 remove_proc:
   proc_net_remove(&init_net, procname);
 free_kfifo:
   kfifo_free(&sctpw.fifo);
   return ret;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(&net, e1, e2, e3)
+ proc_create(e1, e2, net.proc_net, e3)
--- initial
+++ final
@@ -1,12 +1,12 @@
 static int __net_init ipv6_proc_init_net(struct net *net) {
-  if (!proc_net_fops_create(net, "sockstat6", S_IRUGO, &sockstat6_seq_fops)) return -ENOMEM;
-  if (!proc_net_fops_create(net, "snmp6", S_IRUGO, &snmp6_seq_fops)) goto proc_snmp6_fail;
+  if (!proc_create("sockstat6", S_IRUGO, net->proc_net, &sockstat6_seq_fops)) return -ENOMEM;
+  if (!proc_create("snmp6", S_IRUGO, net->proc_net, &snmp6_seq_fops)) goto proc_snmp6_fail;
   net->mib.proc_net_devsnmp6 = proc_mkdir("dev_snmp6", net->proc_net);
   if (!net->mib.proc_net_devsnmp6) goto proc_dev_snmp6_fail;
   return 0;
 proc_dev_snmp6_fail:
   proc_net_remove(net, "snmp6");
 proc_snmp6_fail:
   proc_net_remove(net, "sockstat6");
   return -ENOMEM;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,4 +1,4 @@
 static int __net_init raw6_init_net(struct net *net) {
-  if (!proc_net_fops_create(net, "raw6", S_IRUGO, &raw6_seq_fops)) return -ENOMEM;
+  if (!proc_create("raw6", S_IRUGO, net->proc_net, &raw6_seq_fops)) return -ENOMEM;
   return 0;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,7 +1,7 @@
 static int __net_init ip6_route_net_init_late(struct net *net) {
 #ifdef CONFIG_PROC_FS
-  proc_net_fops_create(net, "ipv6_route", 0, &ipv6_route_proc_fops);
-  proc_net_fops_create(net, "rt6_stats", S_IRUGO, &rt6_stats_seq_fops);
+  proc_create("ipv6_route", 0, net->proc_net, &ipv6_route_proc_fops);
+  proc_create("rt6_stats", S_IRUGO, net->proc_net, &rt6_stats_seq_fops);
 #endif
   return 0;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,17 +1,17 @@
 static int __init scc_init_driver(void) {
   char devname[IFNAMSIZ];
 
   printk(banner);
 
   sprintf(devname, "%s0", SCC_DriverName);
 
   rtnl_lock();
   if (scc_net_alloc(devname, SCC_Info)) {
     rtnl_unlock();
     printk(KERN_ERR "z8530drv: cannot initialize module\n");
     return -EIO;
   }
   rtnl_unlock();
-  proc_net_fops_create(&init_net, "z8530drv", 0, &scc_net_seq_fops);
+  proc_create("z8530drv", 0, init_net.proc_net, &scc_net_seq_fops);
   return 0;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(&net, e1, e2, e3)
+ proc_create(e1, e2, net.proc_net, e3)
--- initial
+++ final
@@ -1,4 +1,4 @@
 static __net_init int proto_init_net(struct net *net) {
-  if (!proc_net_fops_create(net, "protocols", S_IRUGO, &proto_seq_fops)) return -ENOMEM;
+  if (!proc_create("protocols", S_IRUGO, net->proc_net, &proto_seq_fops)) return -ENOMEM;
   return 0;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,19 +1,19 @@
 static __init int tcpprobe_init(void) {
   int ret = -ENOMEM;
   init_waitqueue_head(&tcp_probe.wait);
   spin_lock_init(&tcp_probe.lock);
   if (bufsize == 0) return -EINVAL;
   bufsize = roundup_pow_of_two(bufsize);
   tcp_probe.log = kcalloc(bufsize, sizeof(struct tcp_log), GFP_KERNEL);
   if (!tcp_probe.log) goto err0;
-  if (!proc_net_fops_create(&init_net, procname, S_IRUSR, &tcpprobe_fops)) goto err0;
+  if (!proc_create(procname, S_IRUSR, init_net.proc_net, &tcpprobe_fops)) goto err0;
   ret = register_jprobe(&tcp_jprobe);
   if (ret) goto err1;
   pr_info("probe registered (port=%d) bufsize=%u\n", port, bufsize);
   return 0;
 err1:
   proc_net_remove(&init_net, procname);
 err0:
   kfree(tcp_probe.log);
   return ret;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(&net, e1, e2, e3)
+ proc_create(e1, e2, net.proc_net, e3)
--- initial
+++ final
@@ -1,5 +1,5 @@
 int __net_init wext_proc_init(struct net *net) {
   /* Create /proc/net/wireless entry */
-  if (!proc_net_fops_create(net, "wireless", S_IRUGO, &wireless_seq_fops)) return -ENOMEM;
+  if (!proc_create("wireless", S_IRUGO, net->proc_net, &wireless_seq_fops)) return -ENOMEM;
   return 0;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,4 +1,4 @@
 int __net_init xfrm_proc_init(struct net *net) {
-  if (!proc_net_fops_create(net, "xfrm_stat", S_IRUGO, &xfrm_statistics_seq_fops)) return -ENOMEM;
+  if (!proc_create("xfrm_stat", S_IRUGO, net->proc_net, &xfrm_statistics_seq_fops)) return -ENOMEM;
   return 0;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(net, e1, e2, e3)
+ proc_create(e1, e2, net->proc_net, e3)
--- initial
+++ final
@@ -1,34 +1,34 @@
 static int __init yam_init_driver(void) {
   struct net_device *dev;
   int i, err;
   char name[IFNAMSIZ];
   printk(yam_drvinfo);
   for (i = 0; i < NR_PORTS; i++) {
     sprintf(name, "yam%d", i);
 
     dev = alloc_netdev(sizeof(struct yam_port), name, yam_setup);
     if (!dev) {
       pr_err("yam: cannot allocate net device\n");
       err = -ENOMEM;
       goto error;
     }
 
     err = register_netdev(dev);
     if (err) {
       printk(KERN_WARNING "yam: cannot register net device %s\n", dev->name);
       goto error;
     }
     yam_devs[i] = dev;
   }
   yam_timer.function = yam_dotimer;
   yam_timer.expires = jiffies + HZ / 100;
   add_timer(&yam_timer);
-  proc_net_fops_create(&init_net, "yam", S_IRUGO, &yam_info_fops);
+  proc_create("yam", S_IRUGO, init_net.proc_net, &yam_info_fops);
   return 0;
 error:
   while (--i >= 0) {
     unregister_netdev(yam_devs[i]);
     free_netdev(yam_devs[i]);
   }
   return err;
 }<sep>@@
expression net,e1,e2,e3;
@@

- proc_net_fops_create(&net, e1, e2, e3)
+ proc_create(e1, e2, net.proc_net, e3)