cma: fix counting of isolated pages
authorBartlomiej Zolnierkiewicz <[email protected]>
Mon, 8 Oct 2012 23:32:00 +0000 (16:32 -0700)
committerLinus Torvalds <[email protected]>
Tue, 9 Oct 2012 07:22:44 +0000 (16:22 +0900)
commit2139cbe627b8910ded55148f87ee10f7485408ed
treee42678cc486717e39391bfc71ca0e5671468210e
parent770c8aaaf6f04a87e6765f24d497132de9152a46
cma: fix counting of isolated pages

Isolated free pages shouldn't be accounted to NR_FREE_PAGES counter.  Fix
it by properly decreasing/increasing NR_FREE_PAGES counter in
set_migratetype_isolate()/unset_migratetype_isolate() and removing counter
adjustment for isolated pages from free_one_page() and split_free_page().

Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Cc: Marek Szyprowski <[email protected]>
Cc: Michal Nazarewicz <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/page_alloc.c
mm/page_isolation.c