From: Pavel Emelyanov Date: Wed, 30 Apr 2008 07:54:31 +0000 (-0700) Subject: pidns: make pid->level and pid_ns->level unsigned X-Git-Tag: v2.6.26-rc1~159 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caafa4324335aeb11bc233d5f87aca8cce30beba;p=pandora-kernel.git pidns: make pid->level and pid_ns->level unsigned These values represent the nesting level of a namespace and pids living in it, and it's always non-negative. Turning this from int to unsigned int saves some space in pid.c (11 bytes on x86 and 64 on ia64) by letting the compiler optimize the pid_nr_ns a bit. E.g. on ia64 this removes the sign extension calls, which compiler adds to optimize access to pid->nubers[ns->level]. Signed-off-by: Pavel Emelyanov Cc: "Eric W. Biederman" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed