diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2007-10-18 23:40:19 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 11:53:41 -0700 |
commit | 8990571eb573032c1192440febb17132074c5575 (patch) | |
tree | c5cceff1dbac91ca12917e12f5768a5ab332ec75 /mm | |
parent | bac0abd6174e427404dd197cdbefece31e97329b (diff) | |
download | kernel_samsung_smdk4412-8990571eb573032c1192440febb17132074c5575.zip kernel_samsung_smdk4412-8990571eb573032c1192440febb17132074c5575.tar.gz kernel_samsung_smdk4412-8990571eb573032c1192440febb17132074c5575.tar.bz2 |
Uninline find_pid etc set of functions
The find_pid/_vpid/_pid_ns functions are used to find the struct pid by its
id, depending on whic id - global or virtual - is used.
The find_vpid() is a macro that pushes the current->nsproxy->pid_ns on the
stack to call another function - find_pid_ns(). It turned out, that this
dereference together with the push itself cause the kernel text size to
grow too much.
Move all these out-of-line. Together with the previous patch this saves a
bit less that 400 bytes from .text section.
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Paul Menage <menage@google.com>
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>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions