[PATCH] update total_vm on non-MMU configurations
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: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing
Please register or sign in to comment