From: Eric W. Biederman Date: Sun, 10 Mar 2013 00:15:23 +0000 (-0800) Subject: namespaces: Simplify copy_namespaces so it is clear what is going on. X-Git-Tag: v3.12-rc1~106^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbef0c1c4c5f8ce5d1f5bd8cee092a7afb4ac21b;p=pandora-kernel.git namespaces: Simplify copy_namespaces so it is clear what is going on. Remove the test for the impossible case where tsk->nsproxy == NULL. Fork will never be called with tsk->nsproxy == NULL. Only call get_nsproxy when we don't need to generate a new_nsproxy, and mark the case where we don't generate a new nsproxy as likely. Remove the code to drop an unnecessarily acquired nsproxy value. Acked-by: Serge Hallyn Signed-off-by: "Eric W. Biederman" --- Reading git-diff-tree failed