]> git.baikalelectronics.ru Git - kernel.git/commit
memory hotplug: release memory regions in PAGES_PER_SECTION chunks
authorNathan Fontenot <nfont@austin.ibm.com>
Sun, 19 Oct 2008 03:27:14 +0000 (20:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 15:52:32 +0000 (08:52 -0700)
commit0f6ddaeecdfc7aa2b940134684890247febdb555
treefc0273587d255ac3f1b554b4a98229c3e231ebf6
parent3a6a87cc42dfae63f74eb5b7261e6d231338dd25
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 <nfont@austin.ibm.com>
Signed-off-by: Badari Pulavarty <pbadari@us.ibm.com>
Acked-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory_hotplug.c