linux/ipc
Pavel Emelyanov b2d75cddc8 ipc: uninline some code from util.h
ipc_lock_check_down(), ipc_lock_check() and ipcget() seem too large to be
inline.  Besides, they give no optimization being inline as they perform
calls inside in any case.

Moving them into ipc/util.c saves 500 bytes of vmlinux and shortens IPC
internal API.

$ ./scripts/bloat-o-meter vmlinux-orig vmlinux
add/remove: 3/2 grow/shrink: 0/10 up/down: 490/-989 (-499)
function                                     old     new   delta
ipcget                                         -     392    +392
ipc_lock_check_down                            -      49     +49
ipc_lock_check                                 -      49     +49
sys_semget                                   119     105     -14
sys_shmget                                   108      86     -22
sys_msgget                                   100      78     -22
do_msgsnd                                    665     631     -34
do_msgrcv                                    680     644     -36
do_shmat                                     771     733     -38
sys_msgctl                                  1302    1229     -73
ipcget_new                                    80       -     -80
sys_semtimedop                              1534    1452     -82
sys_semctl                                  2034    1922    -112
sys_shmctl                                  1919    1765    -154
ipcget_public                                322       -    -322

The ipcget() growth is the result of gcc inlining of currently static
ipcget_new/_public.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: Nadia Derbey <Nadia.Derbey@bull.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-08 09:22:25 -08:00
..
compat_mq.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
compat.c fix logic error in ipc compat semctl() 2007-07-06 10:23:43 -07:00
ipc_sysctl.c namespaces: move the IPC namespace under IPC_NS option 2008-02-08 09:22:23 -08:00
Makefile namespaces: move the IPC namespace under IPC_NS option 2008-02-08 09:22:23 -08:00
mqueue.c ipc: lost unlock and fput in mqueue.c on error path 2007-11-29 09:24:52 -08:00
msg.c namespaces: move the IPC namespace under IPC_NS option 2008-02-08 09:22:23 -08:00
msgutil.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
namespace.c namespaces: move the IPC namespace under IPC_NS option 2008-02-08 09:22:23 -08:00
sem.c namespaces: move the IPC namespace under IPC_NS option 2008-02-08 09:22:23 -08:00
shm.c namespaces: move the IPC namespace under IPC_NS option 2008-02-08 09:22:23 -08:00
util.c ipc: uninline some code from util.h 2008-02-08 09:22:25 -08:00
util.h ipc: uninline some code from util.h 2008-02-08 09:22:25 -08:00