]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memory-hotplug: fix NR_FREE_PAGES mismatch's fix
authorWen Congyang <wency@cn.fujitsu.com>
Fri, 9 Nov 2012 03:04:01 +0000 (14:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 9 Nov 2012 03:08:33 +0000 (14:08 +1100)
commit98c79c4d9751148a4afc7689fc5f9462f46e6e53
tree7bbffedf04b72ac3d90d7ed74e8f76a90b1286f2
parentd0eb713b9e94f47034e00d9a4c7fb3babf05cdb0
memory-hotplug: fix NR_FREE_PAGES mismatch's fix

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.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Reported-by: Jianguo Wu <wujianguo106@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c