Prevent page allocations from occuring on an offlined node by adding a check in _alloc_pages_node and correcting the use of for_each_node when allocating shrinkers. The first patch is more of a defensive check while the second patch directly relates to an issue we have found during testing. Signed-Off-by: Nico Pache <npache@xxxxxxxxxx> Nico Pache (2): include/linux/gfp.h: Do not allocate pages on a offlined node mm/vmscan.c: Prevent allocating shrinker_info on offlined nodes include/linux/gfp.h | 5 ++++- mm/vmscan.c | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) -- 2.33.1