Thread (34 messages) 34 messages, 7 authors, 2022-11-09

Re: [PATCH v11 1/9] mm: allow multiple error returns in try_grab_page()

From: Chaitanya Kulkarni <hidden>
Date: 2022-10-25 01:30:28
Also in: linux-mm, linux-nvme, linux-pci, lkml

On 10/21/22 10:41, Logan Gunthorpe wrote:
In order to add checks for P2PDMA memory into try_grab_page(), expand
the error return from a bool to an int/error code. Update all the
callsites handle change in usage.

Also remove the WARN_ON_ONCE() call at the callsites seeing there
already is a WARN_ON_ONCE() inside the function if it fails.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>

-ck
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help