quicklists: Only consider memory that can be used with GFP_KERNELv2.6.22.17-opt1
commitfcae8056673aa7b5b55d669fe5255ae76a93ae53
authorChristoph Lameter <clameter@sgi.com>
Tue, 15 Jan 2008 18:51:19 +0000 (16 00:21 +0530)
committerOliver Pinter <oliver.pntr@gmail.com>
Fri, 8 Feb 2008 21:59:24 +0000 (8 22:59 +0100)
tree7b47ef77534143c13b67b861cd3d9ab62dbf3364
parentb5cf6be2dfcb4ae3885edec574526221c58f0216
quicklists: Only consider memory that can be used with GFP_KERNEL

patch 96990a4ae979df9e235d01097d6175759331e88c in mainline.

Quicklists calculates the size of the quicklists based on the number of
free pages.  This must be the number of free pages that can be allocated
with GFP_KERNEL.  node_page_state() includes the pages in ZONE_HIGHMEM and
ZONE_MOVABLE which may lead the quicklists to become too large causing OOM.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Tested-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
mm/quicklist.c