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

From: SJ Park

Date: Tue Aug 11 2026 - 23:00:35 EST


On Tue, 11 Aug 2026 18:21:56 +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 "bad_page: %d callbacks suppressed\n", ...
>
> But that should be fine enough.

I agree that should be fine. This looks good cleanup to me.

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

Reviewed-by: SJ Park <sj@xxxxxxxxxx>


Thanks,
SJ

[...]