]> err.no Git - linux-2.6/commit
[PATCH] uts: copy nsproxy only when needed
authorSerge Hallyn <serue@us.ibm.com>
Mon, 2 Oct 2006 09:18:18 +0000 (02:18 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 2 Oct 2006 14:57:22 +0000 (07:57 -0700)
commitc0b2fc316599d6cd875b6b8cafa67f03b9512b4d
tree6e03101b6692dfe3284de05a5f4fd5495d513ab3
parent071df104f808b8195c40643dcb4d060681742e29
[PATCH] uts: copy nsproxy only when needed

The nsproxy was being copied in unshare() when anything was being unshared,
even if it was something not referenced from nsproxy.  This should end up
in some cases with far more memory usage than necessary.

Signed-off-by: Serge Hallyn <serue@us.ibm.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Andrey Savochkin <saw@sw.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/fork.c