]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cma: fix counting of isolated pages
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 28 Sep 2012 00:19:38 +0000 (10:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Oct 2012 06:49:27 +0000 (16:49 +1000)
commitcc2775faafef32f32bd85d79e91a532b9bae5f13
treef66ef21132f981d70c0e9eb3ee2b4196df11ef58
parent5e1ca295799d32dfa4d100d6184be6d50b4816ab
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 <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c
mm/page_isolation.c