commit | 6d9f78396583244258080f3369889644c06c37c8 | [log] [tgz] |
---|---|---|
author | Hideo AOKI <haoki@redhat.com> | Mon Apr 10 22:53:00 2006 -0700 |
committer | Linus Torvalds <torvalds@g5.osdl.org> | Tue Apr 11 06:18:32 2006 -0700 |
tree | 645f5e8630bc57e3a8f5653dc941fc0232b5e98b | |
parent | cb45b0e966cbe747b6189c15b108901cc7d6c97c [diff] |
[PATCH] overcommit: use totalreserve_pages This patch is an enhancement of OVERCOMMIT_GUESS algorithm in __vm_enough_memory() in mm/mmap.c. When the OVERCOMMIT_GUESS algorithm calculates the number of free pages, the algorithm subtracts the number of reserved pages from the result nr_free_pages(). Signed-off-by: Hideo Aoki <haoki@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>