Thread (4 messages) 4 messages, 3 authors, 2021-06-29

Re: [PATCH v2] mm/page_alloc: Return nr_populated when the array is full

From: Matthew Wilcox <willy@infradead.org>
Date: 2021-06-28 18:18:51
Also in: linux-nfs

On Mon, Jun 28, 2021 at 02:12:59PM -0400, Chuck Lever wrote:
The SUNRPC consumer of __alloc_bulk_pages() legitimately calls it
with a full array sometimes. In that case, the correct return code,
according to the API contract, is to return the number of pages
already in the array/list.

Let's clean up the return logic to make it clear that the returned
value is always the total number of pages in the array/list, not the
number of pages that were allocated during this call.
This is more complicated than either v1 or the version that Mel sent
earlier today.  Is it worth it?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help