]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4f14e56bcf5e541df9c053fb7251c1f4ac4f87e3
tree8db0049da6d0ce0a968b11fae12f3f91664881dd
parentab014e6250b16c67ea3e49ec97630b6fac8c4041
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