• Michael Buesch's avatar
    [PATCH] Uninline sys_mmap common code (reduce binary size) · a7290ee0
    Michael Buesch authored
    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: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    a7290ee0
sys_i386.c 5.74 KB