From: Naoya Horiguchi Date: Tue, 12 Nov 2013 23:07:26 +0000 (-0800) Subject: mm/memory-failure.c: move set_migratetype_isolate() outside get_any_page() X-Git-Tag: v3.13-rc1~106^2~230 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03b61ff3c324e094944b663cc611a8bab252539c;p=pandora-kernel.git mm/memory-failure.c: move set_migratetype_isolate() outside get_any_page() Chen Gong pointed out that set/unset_migratetype_isolate() was done in different functions in mm/memory-failure.c, which makes the code less readable/maintainable. So this patch does it in soft_offline_page(). With this patch, we get to hold lock_memory_hotplug() longer but it's not a problem because races between memory hotplug and soft offline are very rare. Signed-off-by: Naoya Horiguchi Reviewed-by: Chen, Gong Acked-by: Andi Kleen Reviewed-by: Wanpeng Li Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed