Commit 7d495f4f authored by Christoph Lameter's avatar Christoph Lameter Committed by Greg Kroah-Hartman
Browse files

quicklists: Only consider memory that can be used with GFP_KERNEL



patch 96990a4a 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: default avatarChristoph Lameter <clameter@sgi.com>
Tested-by: default avatarDhaval Giani <dhaval@linux.vnet.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarOliver Pinter <oliver.pntr@gmail.com>
parent ad14c9bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment