[PATCH] memory-hotplug: fix NR_FREE_PAGES mismatch's fix

2012-10-31 Thread Wen Congyang
When a page is freed and put into pcp list, get_freepage_migratetype() doesn't return MIGRATE_ISOLATE even if this pageblock is isolated. So we should use get_pageblock_migratetype() instead of mt to check whether it is isolated. Cc: David Rientjes Cc: Jiang Liu Cc: Len Brown Cc: Benjamin

[PATCH] memory-hotplug: fix NR_FREE_PAGES mismatch's fix

2012-10-31 Thread Wen Congyang
When a page is freed and put into pcp list, get_freepage_migratetype() doesn't return MIGRATE_ISOLATE even if this pageblock is isolated. So we should use get_pageblock_migratetype() instead of mt to check whether it is isolated. Cc: David Rientjes rient...@google.com Cc: Jiang Liu