• Greg Ungerer's avatar
    [PATCH] update total_vm on non-MMU configurations · abd68b6a
    Greg Ungerer authored
    This patch fixes 3 problems with the nommu.c support code:
    
    1. export mem_map and vmtruncate (to make them the same as MMU version)
    
    2. update the total_vm usage in mmap routines
       Without this the OOM killer has no "badness" points to rate
       processes on...
    
       This patch was originally submitted by Giovanni Casoli
       <giovanni.casoli@atengineering.it> for a 2.4.26 kernel.
       I applied it to the 2.6.9 code.
    
    3. provide stub for arch_get_unmapped_area
    Signed-off-by: default avatarGreg Ungerer <gerg@uclinux.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    abd68b6a
nommu.c 13.6 KB