mm: compaction: introduce map_pages()
authorMichal Nazarewicz <mina86@mina86.com>
Mon, 30 Jan 2012 12:23:47 +0000 (13:23 +0100)
committerHiroshi Doyu <hdoyu@nvidia.com>
Fri, 7 Sep 2012 08:46:03 +0000 (11:46 +0300)
commit232e8866cbc1e663d6bc66f8fe6942e041235d99
treeaac5e3b3c204bb5b25e14be32ceda212882baf8f
parenta8b5144d15d71da5c7c78fbe3189d792124fe557
mm: compaction: introduce map_pages()

This commit creates a map_pages() function which map pages freed
using split_free_pages().  This merely moves some code from
isolate_freepages() so that it can be reused in other places.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Tested-by: Robert Nelson <robertcnelson@gmail.com>
Tested-by: Barry Song <Baohua.Song@csr.com>
mm/compaction.c