thp: use compaction in kswapd for GFP_ATOMIC order > 0
authorAndrea Arcangeli <aarcange@redhat.com>
Thu, 13 Jan 2011 23:47:11 +0000 (15:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:46 +0000 (17:32 -0800)
commit5a03b051ed87e72b959f32a86054e1142ac4cf55
tree31f0e8efb86d48b0292f8a7ea4bd9cf7c930a0ab
parent878aee7d6b5504e01b9caffce080e792b6b8d090
thp: use compaction in kswapd for GFP_ATOMIC order > 0

This takes advantage of memory compaction to properly generate pages of
order > 0 if regular page reclaim fails and priority level becomes more
severe and we don't reach the proper watermarks.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/compaction.h
mm/compaction.c
mm/vmscan.c