Re: [RFC PATCH 1/2] include/linux/gfp.h: Do not allocate pages on a offlined node

From: Matthew Wilcox
Date: Sun Dec 05 2021 - 22:38:00 EST


On Sun, Dec 05, 2021 at 10:33:37PM -0500, Nico Pache wrote:
> We shouldn't allocate pages on a unavailable node. Add a check for this
> in __alloc_pages_node and return NULL to avoid issues further down the
> callchain.
>
> Also update the VM_WARN_ON in __alloc_pages_node which could skip this
> warn if the gfp_mask is not GFP_THISNODE.

Why is this not also needed in __folio_alloc_node()?