From 2dc4cab6e83b13c795d7f53399eec49fb256cd07 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 28 Sep 2012 10:19:39 +1000 Subject: [PATCH] cma-count-free-cma-pages-fix use conventional migratetype naming Cc: Bartlomiej Zolnierkiewicz Cc: Hugh Dickins Cc: Kyungmin Park Cc: Marek Szyprowski Cc: Mel Gorman Cc: Michal Nazarewicz Cc: Minchan Kim Signed-off-by: Andrew Morton --- mm/page_isolation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/page_isolation.c b/mm/page_isolation.c index bce97c93451f..345643b85bd4 100644 --- a/mm/page_isolation.c +++ b/mm/page_isolation.c @@ -77,12 +77,12 @@ int set_migratetype_isolate(struct page *page) out: if (!ret) { unsigned long nr_pages; - int mt = get_pageblock_migratetype(page); + int migratetype = get_pageblock_migratetype(page); set_pageblock_isolate(page); nr_pages = move_freepages_block(zone, page, MIGRATE_ISOLATE); - __mod_zone_freepage_state(zone, -nr_pages, mt); + __mod_zone_freepage_state(zone, -nr_pages, migratetype); } spin_unlock_irqrestore(&zone->lock, flags); -- 2.39.5