The patch titled Subject: memory-hotplug: sh: suitable memory should go to ZONE_MOVABLE has been added to the -mm tree. Its filename is memory-hotplug-sh-suitable-memory-should-go-to-zone_movable.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/memory-hotplug-sh-suitable-memory-should-go-to-zone_movable.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/memory-hotplug-sh-suitable-memory-should-go-to-zone_movable.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Wang Nan <wangnan0@xxxxxxxxxx> Subject: memory-hotplug: sh: suitable memory should go to ZONE_MOVABLE This patch introduces zone_for_memory() to arch_add_memory() on sh to ensure new, higher memory added into ZONE_MOVABLE if movable zone has already setup. Signed-off-by: Wang Nan <wangnan0@xxxxxxxxxx> Cc: Zhang Yanfei <zhangyanfei@xxxxxxxxxxxxxx> Cc: Dave Hansen <dave.hansen@xxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: Yinghai Lu <yinghai@xxxxxxxxxx> Cc: "Mel Gorman" <mgorman@xxxxxxx> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Cc: "Dave Hansen" <dave.hansen@xxxxxxxxx> Cc: Zhang Yanfei <zhangyanfei@xxxxxxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx> Cc: "Luck, Tony" <tony.luck@xxxxxxxxx> Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> Cc: Paul Mackerras <paulus@xxxxxxxxx> Cc: Chris Metcalf <cmetcalf@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/sh/mm/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -puN arch/sh/mm/init.c~memory-hotplug-sh-suitable-memory-should-go-to-zone_movable arch/sh/mm/init.c --- a/arch/sh/mm/init.c~memory-hotplug-sh-suitable-memory-should-go-to-zone_movable +++ a/arch/sh/mm/init.c @@ -495,8 +495,9 @@ int arch_add_memory(int nid, u64 start, pgdat = NODE_DATA(nid); /* We only have ZONE_NORMAL, so this is easy.. */ - ret = __add_pages(nid, pgdat->node_zones + ZONE_NORMAL, - start_pfn, nr_pages); + ret = __add_pages(nid, pgdat->node_zones + + zone_for_memory(nid, start, size, ZONE_NORMAL), + start_pfn, nr_pages); if (unlikely(ret)) printk("%s: Failed, __add_pages() == %d\n", __func__, ret); _ Patches currently in -mm which might be from wangnan0@xxxxxxxxxx are mem-hotplug-improve-zone_movable_is_highmem-logic.patch memory-hotplug-add-zone_for_memory-for-selecting-zone-for-new-memory.patch memory-hotplug-x86_64-suitable-memory-should-go-to-zone_movable.patch memory-hotplug-x86_32-suitable-memory-should-go-to-zone_movable.patch memory-hotplug-ia64-suitable-memory-should-go-to-zone_movable.patch memory-hotplug-ppc-suitable-memory-should-go-to-zone_movable.patch memory-hotplug-sh-suitable-memory-should-go-to-zone_movable.patch memory-hotplug-tile-suitable-memory-should-go-to-zone_movable.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html