Re: [PATCH v2 10/21] memblock: refactor internal allocation functions

2019-02-04 Thread Stephen Rothwell
Hi all, On Mon, 04 Feb 2019 19:45:17 +1100 Michael Ellerman wrote: > > Mike Rapoport writes: > > On Sun, Feb 03, 2019 at 08:39:20PM +1100, Michael Ellerman wrote: > >> Mike Rapoport writes: > >> > Currently, memblock has several internal functions with overlapping > >> > functionality. They

Re: [PATCH v2 10/21] memblock: refactor internal allocation functions

2019-02-04 Thread Michael Ellerman
Mike Rapoport writes: > On Sun, Feb 03, 2019 at 08:39:20PM +1100, Michael Ellerman wrote: >> Mike Rapoport writes: >> > Currently, memblock has several internal functions with overlapping >> > functionality. They all call memblock_find_in_range_node() to find free >> > memory and then reserve the

Re: [PATCH v2 10/21] memblock: refactor internal allocation functions

2019-02-03 Thread Mike Rapoport
(dropped most of 'CC) On Sun, Feb 03, 2019 at 08:39:20PM +1100, Michael Ellerman wrote: > Mike Rapoport writes: > > > Currently, memblock has several internal functions with overlapping > > functionality. They all call memblock_find_in_range_node() to find free > > memory and then reserve the al

Re: [PATCH v2 10/21] memblock: refactor internal allocation functions

2019-02-03 Thread Mike Rapoport
On Sun, Feb 03, 2019 at 08:39:20PM +1100, Michael Ellerman wrote: > Mike Rapoport writes: > > > Currently, memblock has several internal functions with overlapping > > functionality. They all call memblock_find_in_range_node() to find free > > memory and then reserve the allocated range and mark

Re: [PATCH v2 10/21] memblock: refactor internal allocation functions

2019-02-03 Thread Michael Ellerman
Mike Rapoport writes: > Currently, memblock has several internal functions with overlapping > functionality. They all call memblock_find_in_range_node() to find free > memory and then reserve the allocated range and mark it with kmemleak. > However, there is difference in the allocation constrain

[PATCH v2 10/21] memblock: refactor internal allocation functions

2019-01-21 Thread Mike Rapoport
Currently, memblock has several internal functions with overlapping functionality. They all call memblock_find_in_range_node() to find free memory and then reserve the allocated range and mark it with kmemleak. However, there is difference in the allocation constraints and in fallback strategies.