]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
quicklists: Only consider memory that can be used with GFP_KERNEL
authorChristoph Lameter <clameter@sgi.com>
Sun, 17 Feb 2008 17:18:24 +0000 (18:18 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 25 Feb 2008 23:59:21 +0000 (15:59 -0800)
commit7d495f4f808c8625900d9e52cb531992b350458d
tree8aecd11a1c82c8f1f9929798fc0494435cdcaa0d
parentad14c9bb60583f9eac5e7b33c052d2a9614d113f
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