From: Nathan Fontenot Date: Sun, 19 Oct 2008 03:27:14 +0000 (-0700) Subject: memory hotplug: release memory regions in PAGES_PER_SECTION chunks X-Git-Tag: v2.6.28-rc1~207 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de7f0cba9678;p=pandora-kernel.git memory hotplug: release memory regions in PAGES_PER_SECTION chunks During hotplug memory remove, memory regions should be released on a PAGES_PER_SECTION size chunks. This mirrors the code in add_memory where resources are requested on a PAGES_PER_SECTION size. Attempting to release the entire memory region fails because there is not a single resource for the total number of pages being removed. Instead the resources for the pages are split in PAGES_PER_SECTION size chunks as requested during memory add. Signed-off-by: Nathan Fontenot Signed-off-by: Badari Pulavarty Acked-by: Yasunori Goto Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed