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

From: SJ Park

Date: Tue Aug 11 2026 - 22:57:09 EST


On Tue, 11 Aug 2026 18:21:55 +0100 Pedro Falcato <pfalcato@xxxxxxx> 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 "print_bad_page_map: %d callbacks suppressed\n", ...
>
> But that should be fine enough.

Nice cleanup, thank you! I also agree the change on the log message should be
fine.

>
> Signed-off-by: Pedro Falcato <pfalcato@xxxxxxx>

Reviewed-by: SJ Park <sj@xxxxxxxxxx>


Thanks,
SJ

[...]