Re: [PATCH 1/3] mm: alloc_contig_range: allow to specify GFP mask

2017-01-27 Thread Michal Hocko
On Fri 20-01-17 13:35:40, Vlastimil Babka wrote: > On 01/19/2017 06:07 PM, Lucas Stach wrote: [...] > > @@ -7255,7 +7256,7 @@ int alloc_contig_range(unsigned long start, unsigned > > long end, > > .zone = page_zone(pfn_to_page(start)), > > .mode = MIGRATE_SYNC, > >

Re: [PATCH 1/3] mm: alloc_contig_range: allow to specify GFP mask

2017-01-20 Thread Vlastimil Babka
On 01/19/2017 06:07 PM, Lucas Stach wrote: > Currently alloc_contig_range assumes that the compaction should > be done with the default GFP_KERNEL flags. This is probably > right for all current uses of this interface, but may change as > CMA is used in more use-cases (including being the default D

[PATCH 1/3] mm: alloc_contig_range: allow to specify GFP mask

2017-01-19 Thread Lucas Stach
Currently alloc_contig_range assumes that the compaction should be done with the default GFP_KERNEL flags. This is probably right for all current uses of this interface, but may change as CMA is used in more use-cases (including being the default DMA memory allocator on some platforms). Change the