Re: [PATCH 1/2] mm: replace custom bad page map ratelimiting logic
From: Zi Yan
Date: Tue Aug 11 2026 - 15:43:08 EST
On Tue Aug 11, 2026 at 1:21 PM EDT, 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 "print_bad_page_map: %d callbacks suppressed\n", ...
>
> But that should be fine enough.
>
> Signed-off-by: Pedro Falcato <pfalcato@xxxxxxx>
> ---
> mm/memory.c | 30 +++---------------------------
> 1 file changed, 3 insertions(+), 27 deletions(-)
>
Great!
Acked-by: Zi Yan <ziy@xxxxxxxxxx>
--
Best Regards,
Yan, Zi