Re: [mm PATCH v3 3/6] mm: Use memblock/zone specific iterator for handling deferred page init

2018-10-17 Thread Mike Rapoport
On Mon, Oct 15, 2018 at 01:27:09PM -0700, Alexander Duyck wrote: > This patch introduces a new iterator for_each_free_mem_pfn_range_in_zone. > > This iterator will take care of making sure a given memory range provided > is in fact contained within a zone. It takes are of all the bounds checking

Re: [mm PATCH v3 3/6] mm: Use memblock/zone specific iterator for handling deferred page init

2018-10-17 Thread Mike Rapoport
On Mon, Oct 15, 2018 at 01:27:09PM -0700, Alexander Duyck wrote: > This patch introduces a new iterator for_each_free_mem_pfn_range_in_zone. > > This iterator will take care of making sure a given memory range provided > is in fact contained within a zone. It takes are of all the bounds checking

Re: [mm PATCH v3 3/6] mm: Use memblock/zone specific iterator for handling deferred page init

2018-10-17 Thread Alexander Duyck
On 10/17/2018 2:11 AM, Michal Hocko wrote: On Mon 15-10-18 13:27:09, Alexander Duyck wrote: This patch introduces a new iterator for_each_free_mem_pfn_range_in_zone. This iterator will take care of making sure a given memory range provided is in fact contained within a zone. It takes are of

Re: [mm PATCH v3 3/6] mm: Use memblock/zone specific iterator for handling deferred page init

2018-10-17 Thread Alexander Duyck
On 10/17/2018 2:11 AM, Michal Hocko wrote: On Mon 15-10-18 13:27:09, Alexander Duyck wrote: This patch introduces a new iterator for_each_free_mem_pfn_range_in_zone. This iterator will take care of making sure a given memory range provided is in fact contained within a zone. It takes are of

Re: [mm PATCH v3 3/6] mm: Use memblock/zone specific iterator for handling deferred page init

2018-10-17 Thread Michal Hocko
On Mon 15-10-18 13:27:09, Alexander Duyck wrote: > This patch introduces a new iterator for_each_free_mem_pfn_range_in_zone. > > This iterator will take care of making sure a given memory range provided > is in fact contained within a zone. It takes are of all the bounds checking > we were doing

Re: [mm PATCH v3 3/6] mm: Use memblock/zone specific iterator for handling deferred page init

2018-10-17 Thread Michal Hocko
On Mon 15-10-18 13:27:09, Alexander Duyck wrote: > This patch introduces a new iterator for_each_free_mem_pfn_range_in_zone. > > This iterator will take care of making sure a given memory range provided > is in fact contained within a zone. It takes are of all the bounds checking > we were doing

[mm PATCH v3 3/6] mm: Use memblock/zone specific iterator for handling deferred page init

2018-10-15 Thread Alexander Duyck
This patch introduces a new iterator for_each_free_mem_pfn_range_in_zone. This iterator will take care of making sure a given memory range provided is in fact contained within a zone. It takes are of all the bounds checking we were doing in deferred_grow_zone, and deferred_init_memmap. In

[mm PATCH v3 3/6] mm: Use memblock/zone specific iterator for handling deferred page init

2018-10-15 Thread Alexander Duyck
This patch introduces a new iterator for_each_free_mem_pfn_range_in_zone. This iterator will take care of making sure a given memory range provided is in fact contained within a zone. It takes are of all the bounds checking we were doing in deferred_grow_zone, and deferred_init_memmap. In