summaryrefslogtreecommitdiffstats
path: root/fs/proc/proc_net.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-05-02 04:12:41 -0700
committerDavid S. Miller <davem@davemloft.net>2008-05-02 04:12:41 -0700
commit78e92b99ec4eb73755abd4e357b0b211eadafd88 (patch)
tree8db0049da6d0ce0a968b11fae12f3f91664881dd /fs/proc/proc_net.c
parent8b169240e266d7fc58d9b9077d18d50a548d9732 (diff)
downloadlinux-78e92b99ec4eb73755abd4e357b0b211eadafd88.tar.gz
linux-78e92b99ec4eb73755abd4e357b0b211eadafd88.tar.bz2
linux-78e92b99ec4eb73755abd4e357b0b211eadafd88.zip
netns: assign PDE->data before gluing entry into /proc tree
In this unfortunate case, proc_mkdir_mode wrapper can't be used anymore and this is no way to reuse proc_create_data due to nlinks assignment. So, copy the code from proc_mkdir and assign PDE->data at the appropriate moment. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/proc/proc_net.c')
-rw-r--r--fs/proc/proc_net.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/proc/proc_net.c b/fs/proc/proc_net.c
index 13cd7835d0df..83f357b30d71 100644
--- a/fs/proc/proc_net.c
+++ b/fs/proc/proc_net.c
@@ -159,17 +159,6 @@ struct net *get_proc_net(const struct inode *inode)
}
EXPORT_SYMBOL_GPL(get_proc_net);
-struct proc_dir_entry *proc_net_mkdir(struct net *net, const char *name,
- struct proc_dir_entry *parent)
-{
- struct proc_dir_entry *pde;
- pde = proc_mkdir_mode(name, S_IRUGO | S_IXUGO, parent);
- if (pde != NULL)
- pde->data = net;
- return pde;
-}
-EXPORT_SYMBOL_GPL(proc_net_mkdir);
-
static __net_init int proc_net_ns_init(struct net *net)
{
struct proc_dir_entry *netd, *net_statd;