nsproxy: extract create_nsproxy()
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 17 Jun 2009 23:27:56 +0000 (16:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 20:03:56 +0000 (13:03 -0700)
commit90af90d7d3a7411db64860c9d6e5798ff87cad08
tree84f9c68edb231d6b64d2b24add4d7bedcb5a4aa8
parent612ce478fac2729ad564ec3f5d3c551674b8e9c2
nsproxy: extract create_nsproxy()

clone_nsproxy() does useless copying of old nsproxy -- every pointer will
be rewritten to new ns or to old ns.  Remove copying, rename
clone_nsproxy(), create_nsproxy() will be used by C/R code to create fresh
nsproxy on restart.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/nsproxy.c