mm: vmpressure: Don't exclude any allocation types

Although userspace processes can't directly help with kernel memory
pressure, killing userspace processes can relieve kernel memory if they
are responsible for that pressure in the first place. It doesn't make
sense to exclude any allocation types knowing that userspace can indeed
affect all memory pressure, so don't exclude any allocation types from
the pressure calculations.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
fourteen
Sultan Alsawaf 5 years ago committed by Jenna
parent f41a44f0f9
commit 759c9e864c
  1. 3
      mm/vmpressure.c

@ -482,9 +482,6 @@ static void vmpressure_global(gfp_t gfp, unsigned long scanned,
unsigned long pressure;
unsigned long stall;
if (!(gfp & (__GFP_HIGHMEM | __GFP_MOVABLE | __GFP_IO | __GFP_FS)))
return;
if (!scanned)
return;

Loading…
Cancel
Save