• Jian Peng's avatar
    MIPS: topdown mmap support · d0be89f6
    Jian Peng authored
    This patch introduced topdown mmap support in user process address
    space allocation policy.
    
    Recently, we ran some large applications that use mmap heavily and
    lead to OOM due to inflexible mmap allocation policy on MIPS32.
    
    Since most other major archs supported it for years, it is reasonable
    to follow the trend and reduce the pain of porting applications.
    
    Due to cache aliasing concern, arch_get_unmapped_area_topdown() and
    other helper functions are implemented in arch/mips/kernel/syscall.c.
    Signed-off-by: default avatarJian Peng <jipeng2005@gmail.com>
    Cc: David Daney <ddaney@caviumnetworks.com>
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/2389/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    d0be89f6
mmap.c 6.57 KB