Re: [PATCH 21/30] memblock: replace alloc_bootmem with memblock_alloc

2018-09-26 Thread Michal Hocko
On Fri 14-09-18 15:10:36, Mike Rapoport wrote: > The alloc_bootmem(size) is a shortcut for allocation of SMP_CACHE_BYTES > aligned memory. When the align parameter of memblock_alloc() is 0, the > alignment is implicitly set to SMP_CACHE_BYTES and thus alloc_bootmem(size) > and memblock_alloc(size,

[PATCH 21/30] memblock: replace alloc_bootmem with memblock_alloc

2018-09-14 Thread Mike Rapoport
The alloc_bootmem(size) is a shortcut for allocation of SMP_CACHE_BYTES aligned memory. When the align parameter of memblock_alloc() is 0, the alignment is implicitly set to SMP_CACHE_BYTES and thus alloc_bootmem(size) and memblock_alloc(size, 0) are equivalent. The conversion is done using the fo