Re: [PATCH v2 2/2] ring-buffer: Use subbuf_order in available memory estimation
From: Google
Date: Wed Oct 14 2026 - 19:23:22 EST
On Tue, 13 Oct 2026 11:20:47 +0100, Vincent Donnefort <vdonnefort@xxxxxxxxxx> wrote:
> To avoid failing in the middle of an allocation of a ring-buffer,
> __rb_allocate_pages() looks at the available memory estimation with
> si_mem_available(). Use the subbuffer order with this estimation to fail
> early if necessary for ring-buffers with an order > 0.
>
> Fixes: f9b94daa542a ("ring-buffer: Set new size of the ring buffer sub page")
> Signed-off-by: Vincent Donnefort <vdonnefort@xxxxxxxxxx>
Looks good to me.
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>
Thanks,
--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>