]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] overcommit: use totalreserve_pages for nommu
authorHideo AOKI <haoki@redhat.com>
Tue, 11 Apr 2006 05:53:01 +0000 (22:53 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:32 +0000 (06:18 -0700)
commit087f96dabadef05bb73220c183ec1de5546a33bb
treede29b6d1c43fa6f5a1aca52ad6c2cc6027edc1fc
parent6b8a59c7560c0eb7b6bac792788443a0af96e17c
[PATCH] overcommit: use totalreserve_pages for nommu

This patch is an enhancement of OVERCOMMIT_GUESS algorithm in
__vm_enough_memory() in mm/nommu.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>
mm/nommu.c