mm: trigger page reclaim in alloc_contig_range() to stabilise watermarks
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 25 Jan 2012 11:49:24 +0000 (12:49 +0100)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 26 Feb 2013 17:51:17 +0000 (19:51 +0200)
commit1851ee3f461494bd612157557dc72efdddeee17c
treeecb78bd867b7abdbe015f9007c69d267133c2372
parentbc8b67ba27160f1c0743ba63c968ba6604ce1560
mm: trigger page reclaim in alloc_contig_range() to stabilise watermarks

alloc_contig_range() performs memory allocation so it also should keep
track on keeping the correct level of memory watermarks. This commit adds
a call to *_slowpath style reclaim to grab enough pages to make sure that
the final collection of contiguous pages from freelists will not starve
the system.

[notasas@gmail.com: update out_of_memory args]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
CC: Michal Nazarewicz <mina86@mina86.com>
Tested-by: Rob Clark <rob.clark@linaro.org>
Tested-by: Ohad Ben-Cohen <ohad@wizery.com>
Tested-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>
include/linux/mmzone.h
mm/page_alloc.c