summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorVincent Donnefort <vdonnefort@google.com>2026-10-13 11:20:47 +0100
committerSteven Rostedt <rostedt@goodmis.org>2026-10-15 08:52:26 -0400
commit13d530f2daeda9493f4d07ddc5ca13e21318fbeb (patch)
treef7cc9925bf1b501375bc794ede56fbe88c2a150a /scripts/basic/split-include.c
parentc9fc60c18b6d42efdea0cd88ca132b2f452157c3 (diff)
downloadlinux-13d530f2daeda9493f4d07ddc5ca13e21318fbeb.tar.gz
linux-13d530f2daeda9493f4d07ddc5ca13e21318fbeb.zip
ring-buffer: Use subbuf_order in available memory estimation
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. Link: https://patch.msgid.link/20261013102047.1488347-3-vdonnefort@google.com Fixes: f9b94daa542a ("ring-buffer: Set new size of the ring buffer sub page") Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Vincent Donnefort <vdonnefort@google.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions