]> git.baikalelectronics.ru Git - kernel.git/commit
memory hotplug: free memmaps allocated by bootmem
authorYasunori Goto <y-goto@jp.fujitsu.com>
Mon, 28 Apr 2008 09:13:34 +0000 (02:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:26 +0000 (08:58 -0700)
commit81363cc2d436f23f72218a39a02cf0b243f96e42
tree3d02fe9dbf160cd5d328c1e2cf4b40ce37426c5f
parent24492bc6a81a60d2be8ffb94f8b47a3f15c15f81
memory hotplug: free memmaps allocated by bootmem

This patch is to free memmaps which is allocated by bootmem.

Freeing usemap is not necessary.  The pages of usemap may be necessary for
other sections.

If removing section is last section on the node, its section is the final user
of usemap page.  (usemaps are allocated on its section by previous patch.) But
it shouldn't be freed too, because the section must be logical offline state
which all pages are isolated against page allocater.  If it is freed, page
alloctor may use it which will be removed physically soon.  It will be
disaster.  So, this patch keeps it as it is.

Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Cc: Badari Pulavarty <pbadari@us.ibm.com>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: 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/internal.h
mm/memory_hotplug.c
mm/page_alloc.c
mm/sparse.c