mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Cc: Badari Pulavarty <[email protected]> Cc: Yinghai Lu <[email protected]> Cc: Yasunori Goto <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
86f6dae137
commit
0c0a4a517a
4 changed files with 60 additions and 7 deletions
|
|
@ -34,8 +34,7 @@ static inline void __put_page(struct page *page)
|
|||
atomic_dec(&page->_count);
|
||||
}
|
||||
|
||||
extern void __init __free_pages_bootmem(struct page *page,
|
||||
unsigned int order);
|
||||
extern void __free_pages_bootmem(struct page *page, unsigned int order);
|
||||
|
||||
/*
|
||||
* function for dealing with page's order in buddy system.
|
||||
|
|
|
|||
Loading…
Reference in a new issue