mm: extract reclaim code from __alloc_pages_direct_reclaim()
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 25 Jan 2012 11:09:52 +0000 (12:09 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 21 May 2012 13:09:35 +0000 (15:09 +0200)
commitbba9071087108d3de70bea274e35064cc480487b
treeb11ff34b84a8515063104c461e3e81f69ea83f01
parentcfd3da1e49bb95c355c01c0f502d657deb3d34a4
mm: extract reclaim code from __alloc_pages_direct_reclaim()

This patch extracts common reclaim code from __alloc_pages_direct_reclaim()
function to separate function: __perform_reclaim() which can be later used
by alloc_contig_range().

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Michal Nazarewicz <mina86@mina86.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
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>
mm/page_alloc.c