__rb_allocate_pages() uses si_mem_available() to fail early when there is not enough memory for a ring buffer allocation. However it wasn't updated with the introduction of persistent and remote buffers and subbuf_order.
v2: - Add "ring-buffer: Use subbuf_order in available memory estimation" v1: https://lore.kernel.org/all/[email protected]/ Vincent Donnefort (2): ring-buffer: Skip si_mem_available() for persistent and remote buffers ring-buffer: Use subbuf_order in available memory estimation kernel/trace/ring_buffer.c | 47 +++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 23 deletions(-) base-commit: 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907 -- 2.56.0.385.gd3acb90ef8-goog
