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 <mgorman@xxxxxxx> --- 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>