]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Uninline sys_mmap common code (reduce binary size)
authorMichael Buesch <mbuesch@freenet.de>
Wed, 22 Mar 2006 08:08:44 +0000 (00:08 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 22 Mar 2006 15:54:02 +0000 (07:54 -0800)
commita8a9912cbb2816838850a46895ddacee607c52b8
treeee7d16b2c946c90450cf22e8bcd91111ca66270f
parent88f5681334e5b5e14ff7c00b7e277bbb5d56a997
[PATCH] Uninline sys_mmap common code (reduce binary size)

Remove the inlining of the new vs old mmap system call common code.  This
reduces the size of the resulting vmlinux for defconfig as follows:

mb@pc1:~/develop/git/linux-2.6$ size vmlinux.mmap*
   text    data     bss     dec     hex filename
3303749  521524  186564 4011837  3d373d vmlinux.mmapinline
3303557  521524  186564 4011645  3d367d vmlinux.mmapnoinline

The new sys_mmap2() has also one function call overhead removed, now.
(probably it was already optimized to a jmp before, but anyway...)

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/sys_i386.c