]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cma: decrease cc.nr_migratepages after reclaiming pagelist
authorMinchan Kim <minchan@kernel.org>
Fri, 28 Sep 2012 00:20:00 +0000 (10:20 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Oct 2012 05:03:37 +0000 (15:03 +1000)
commitb18f20b6d79a138d940d85c33da10ec5cf9aff8c
tree6e5fa874380c40feabd3f324e82f95fec25d7fc4
parentf03c582a513210e1941d6ccb160220baeb4cb6fe
cma: decrease cc.nr_migratepages after reclaiming pagelist

reclaim_clean_pages_from_list() reclaims clean pages before migration so
cc.nr_migratepages should be updated.  Currently, there is no problem but
it can be wrong if we try to use the value in future.

Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c