Re: [PATCH 2/2] mm: free memblock.memory in free_all_bootmem

2014-01-08 Thread Yinghai Lu
On Wed, Jan 8, 2014 at 5:42 AM, Philipp Hachtmann wrote: > Am Wed, 8 Jan 2014 12:08:04 +0800 > schrieb Jianguo Wu : > >> For some archs, like arm64, would use memblock.memory after system >> booting, so we can not simply released to the buddy allocator, maybe >> need !defined(CONFIG_ARCH_DISCARD_M

Re: [PATCH 2/2] mm: free memblock.memory in free_all_bootmem

2014-01-08 Thread Philipp Hachtmann
Am Wed, 8 Jan 2014 12:08:04 +0800 schrieb Jianguo Wu : > For some archs, like arm64, would use memblock.memory after system > booting, so we can not simply released to the buddy allocator, maybe > need !defined(CONFIG_ARCH_DISCARD_MEMBLOCK). Oh, I see. I have added some ifdefs to prevent memblock

Re: [PATCH 2/2] mm: free memblock.memory in free_all_bootmem

2014-01-07 Thread Jianguo Wu
On 2014/1/7 23:16, Philipp Hachtmann wrote: > When calling free_all_bootmem() the free areas under memblock's > control are released to the buddy allocator. Additionally the > reserved list is freed if it was reallocated by memblock. > The same should apply for the memory list. > > Signed-off-by:

Re: [PATCH 2/2] mm: free memblock.memory in free_all_bootmem

2014-01-07 Thread Tejun Heo
On Tue, Jan 07, 2014 at 04:16:14PM +0100, Philipp Hachtmann wrote: > When calling free_all_bootmem() the free areas under memblock's > control are released to the buddy allocator. Additionally the > reserved list is freed if it was reallocated by memblock. > The same should apply for the memory lis