Re: [PATCH 2/2] mm/page_alloc: replace custom bad page ratelimiting logic

From: Johannes Weiner

Date: Tue Aug 11 2026 - 15:13:43 EST


On Tue, Aug 11, 2026 at 06:21:56PM +0100, Pedro Falcato wrote:
> The current logic (allow up to $BURST prints per minute) can be entirely
> replaced by the generic version in lib/ratelimit.c, used around the kernel.
>
> Do so. The only functional difference should be that the new logs will
> read something like:
>
> KERN_WARNING "bad_page: %d callbacks suppressed\n", ...
>
> But that should be fine enough.
>
> Signed-off-by: Pedro Falcato <pfalcato@xxxxxxx>

Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>