diff options
| author | Vincent Donnefort <vdonnefort@google.com> | 2026-09-16 16:28:12 +0100 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2026-10-15 19:51:42 -0400 |
| commit | 9fd830120fd61ab934aff90361586e65b8dd020d (patch) | |
| tree | 5efaa1c27ddc9015e85d70d045f97f7a5af3e3c4 /scripts/basic/split-include.c | |
| parent | 20d432b4454b54f32afaaa1b0ac336078c3b6be7 (diff) | |
| download | linux-9fd830120fd61ab934aff90361586e65b8dd020d.tar.gz linux-9fd830120fd61ab934aff90361586e65b8dd020d.zip | |
ring-buffer: Clean up resize_disabled checks
ring_buffer_subbuf_order_set() checks for resize_disabled twice under
the same buffer->mutex hold. Moreover, this check duplicates the logic
in ring_buffer_resize(). Create a common helper rb_resize_disabled() to
factor out this code.
Link: https://patch.msgid.link/20260916152813.105082-2-vdonnefort@google.com
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
