[PATCH v11 1/9] mm: allow multiple error returns in try_grab_page()
Christoph Hellwig
hch at lst.de
Mon Oct 24 08:00:11 PDT 2022
On Fri, Oct 21, 2022 at 11:41:08AM -0600, 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 at deltatee.com>
Looks good:
Reviewed-by: Christoph Hellwig <hch at lst.de>
More information about the Linux-nvme
mailing list