[PATCH 0/2] mm: replace custom ratelimiting logic

From: Pedro Falcato

Date: Tue Aug 11 2026 - 13:36:35 EST


The kernel has a perfectly cromulent and mostly-equivalent variant in
lib/ratelimit.c that can be used.

To: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
To: David Hildenbrand <david@xxxxxxxxxx>
Cc: Lorenzo Stoakes <ljs@xxxxxxxxxx>
Cc: "Liam R. Howlett" <liam@xxxxxxxxxxxxx>
Cc: Vlastimil Babka <vbabka@xxxxxxxxxx>
Cc: Mike Rapoport <rppt@xxxxxxxxxx>
Cc: Suren Baghdasaryan <surenb@xxxxxxxxxx>
Cc: Michal Hocko <mhocko@xxxxxxxx>
Cc: Brendan Jackman <brendan.jackman@xxxxxxxxx>
Cc: Johannes Weiner <hannes@xxxxxxxxxxx>
Cc: Zi Yan <ziy@xxxxxxxxxx>
Cc: linux-mm@xxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx

Pedro Falcato (2):
mm: replace custom bad page map ratelimiting logic
mm/page_alloc: replace custom bad page ratelimiting logic

mm/memory.c | 30 +++---------------------------
mm/page_alloc.c | 28 +++++-----------------------
2 files changed, 8 insertions(+), 50 deletions(-)

--
2.55.0