aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers
diff options
context:
space:
mode:
authorJohannes Weiner <[email protected]>2025-04-16 13:45:39 +0000
committerAndrew Morton <[email protected]>2025-04-18 03:10:09 +0000
commit38448181459e24257b40d5258afdbaa3565e8cfc (patch)
treeb46dc11af491d3160e106ab1911911e77bb7ab20 /rust/helpers
parentMAINTAINERS: add Pedro as reviewer to the MEMORY MAPPING section (diff)
downloadkernel-38448181459e24257b40d5258afdbaa3565e8cfc.tar.gz
kernel-38448181459e24257b40d5258afdbaa3565e8cfc.zip
mm: vmscan: restore high-cpu watermark safety in kswapd
Vlastimil points out that commit a211c6550efc ("mm: page_alloc: defrag_mode kswapd/kcompactd watermarks") switched kswapd from zone_watermark_ok_safe() to the standard, percpu-cached version of reading free pages, thus dropping the watermark safety precautions for systems with high CPU counts (e.g. >212 cpus on 64G). Restore them. Since zone_watermark_ok_safe() is no longer the right interface, and this was the last caller of the function anyway, open-code the zone_page_state_snapshot() conditional and delete the function. Link: https://lkml.kernel.org/r/[email protected] Fixes: a211c6550efc ("mm: page_alloc: defrag_mode kswapd/kcompactd watermarks") Signed-off-by: Johannes Weiner <[email protected]> Reported-by: Vlastimil Babka <[email protected]> Reviewed-by: Vlastimil Babka <[email protected]> Cc: Brendan Jackman <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions