]> git.ipfire.org Git - thirdparty/linux.git/commit
relayfs: abolish prev_padding
authorJason Xing <kernelxing@tencent.com>
Thu, 12 Jun 2025 06:11:57 +0000 (14:11 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:57:51 +0000 (22:57 -0700)
commit2489e958129ff7cbf26a34ee33cdc9ccbd68fe3c
treea36e1e6b43ecad6ce55a8658f77c34376b527cb7
parentc9e3fb050e9cb0d3a833b2c62b35ea42cdd81e89
relayfs: abolish prev_padding

Patch series "relayfs: misc changes", v5.

The series mostly focuses on the error counters which helps every user
debug their own kernel module.

This patch (of 5):

prev_padding represents the unused space of certain subbuffer.  If the
content of a call of relay_write() exceeds the limit of the remainder of
this subbuffer, it will skip storing in the rest space and record the
start point as buf->prev_padding in relay_switch_subbuf().  Since the buf
is a per-cpu big buffer, the point of prev_padding as a global value for
the whole buffer instead of a single subbuffer (whose padding info is
stored in buf->padding[]) seems meaningless from the real use cases, so we
don't bother to record it any more.

Link: https://lkml.kernel.org/r/20250612061201.34272-1-kerneljasonxing@gmail.com
Link: https://lkml.kernel.org/r/20250612061201.34272-2-kerneljasonxing@gmail.com
Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Yushan Zhou <katrinzhou@tencent.com>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
drivers/net/wwan/iosm/iosm_ipc_trace.c
drivers/net/wwan/t7xx/t7xx_port_trace.c
include/linux/relay.h
kernel/relay.c
kernel/trace/blktrace.c