The pageblock migrate type is checked during allocation in case it's CMA but using get_freepage_migratetype() should be sufficient as the magazines would have been drained prior to a CMA allocation attempt.
Signed-off-by: Mel Gorman <[email protected]> --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index f74e16f..8867937 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1523,7 +1523,7 @@ again: if (!page) goto failed; __mod_zone_freepage_state(zone, -(1 << order), - get_pageblock_migratetype(page)); + get_freepage_migratetype(page)); } __count_zone_vm_events(PGALLOC, zone, 1 << order); -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

