]> 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>
Fri, 5 Oct 2012 04:01:13 +0000 (14:01 +1000)
commit81cf8f7571a13b9ca3765ee34fb5bb99974f23b1
tree128660c00921b8c99de669442d45a065b0a65220
parente4b7d8fcc061b27a08afd9ecc9e9ecad9d853231
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