mm: allocate CMA pages first for GFP_HIGHUSER_MOVABLE
authorCho KyongHo <pullip.cho@samsung.com>
Thu, 5 Jan 2017 01:23:07 +0000 (10:23 +0900)
committerhskang <hs1218.kang@samsung.com>
Mon, 27 Aug 2018 07:23:14 +0000 (16:23 +0900)
commitd13ab91792538a7279081a791b1113c00d8d4173
treead633e9e3eb6a65cce12cb25cc2e7cf60e754513
parent7f6c82e570cf79f779e9b9ddb9e8f2d62bcec18e
mm: allocate CMA pages first for GFP_HIGHUSER_MOVABLE

CMA pages are not actively used and tend to be remained unused because
the free list of CMA pages are only lookuped as the fallback of
movable page allocations. Large amount of free CMA pages causes
problems about unmovable page allocation failure as well as memory
unefficiency.
If free CMA pages are more than the low wmark, page reclamation does
not work for unmovable page allocations. This results in depletion of
free pages available for unmovable page allocations.
To prevent this impact by free CMA pages, we should always try to
consume all free CMA pages.

Change-Id: Idc51f0327f6706d27dafbbb69475bf53eb0153eb
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
mm/page_alloc.c