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

2012-11-08 Thread Wen Congyang
At 11/08/2012 05:06 PM, Wen Congyang Wrote: > > 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_freepage_migratetype() instead of mt to check > whether it is isolated. In my local tr

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

2012-11-08 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_freepage_migratetype() instead of mt to check whether it is isolated. --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti