netns: assign PDE->data before gluing entry into /proc tree
authorDenis V. Lunev <den@openvz.org>
Fri, 2 May 2008 11:12:41 +0000 (04:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2008 11:12:41 +0000 (04:12 -0700)
commit78e92b99ec4eb73755abd4e357b0b211eadafd88
tree8db0049da6d0ce0a968b11fae12f3f91664881dd
parent8b169240e266d7fc58d9b9077d18d50a548d9732
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>
fs/proc/generic.c
fs/proc/proc_net.c