Re: [PATCH 2/3] mm/page_alloc: Add a bulk page allocator

2021-03-23 Thread Mel Gorman
On Tue, Mar 23, 2021 at 05:00:08PM +0100, Jesper Dangaard Brouer wrote: > > + /* > > +* If there are no allowed local zones that meets the watermarks then > > +* try to allocate a single page and reclaim if necessary. > > +*/ > > + if (!zone) > > + goto failed; > > + > > +

Re: [PATCH 2/3] mm/page_alloc: Add a bulk page allocator

2021-03-23 Thread Jesper Dangaard Brouer
On Mon, 22 Mar 2021 09:18:44 + Mel Gorman wrote: > This patch adds a new page allocator interface via alloc_pages_bulk, > and __alloc_pages_bulk_nodemask. A caller requests a number of pages > to be allocated and added to a list. > > The API is not guaranteed to return the requested number o

[PATCH 2/3] mm/page_alloc: Add a bulk page allocator

2021-03-22 Thread Mel Gorman
This patch adds a new page allocator interface via alloc_pages_bulk, and __alloc_pages_bulk_nodemask. A caller requests a number of pages to be allocated and added to a list. The API is not guaranteed to return the requested number of pages and may fail if the preferred allocation zone has limited

[PATCH 2/3] mm, page_alloc: Add a bulk page allocator

2021-02-24 Thread Mel Gorman
This patch adds a new page allocator interface via alloc_pages_bulk, and __alloc_pages_bulk_nodemask. A caller requests a number of pages to be allocated and added to a list. They can be freed in bulk using free_pages_bulk(). The API is not guaranteed to return the requested number of pages and ma