]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: Use trace_call__##name() at guarded tracepoint call sites
authorVineeth Pillai (Google) <vineeth@bitbyteword.org>
Mon, 23 Mar 2026 16:00:34 +0000 (12:00 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 26 Mar 2026 14:24:40 +0000 (10:24 -0400)
commitd7447f2dce46e1237e7908f49703803ffc0ef19f
tree5836dab25adad698005b16947af81cd8e797519e
parent47f570fcfd5a5a8c58913fee8fa2db2f99591ae9
btrfs: Use trace_call__##name() at guarded tracepoint call sites

Replace trace_foo() with the new trace_call__foo() at sites already
guarded by trace_foo_enabled(), avoiding a redundant
static_branch_unlikely() re-evaluation inside the tracepoint.
trace_call__foo() calls the tracepoint callbacks directly without
utilizing the static branch again.

Cc: Chris Mason <clm@fb.com>
Link: https://patch.msgid.link/20260323160052.17528-16-vineeth@bitbyteword.org
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Vineeth Pillai (Google) <vineeth@bitbyteword.org>
Assisted-by: Claude:claude-sonnet-4-6
Acked-by: David Sterba <dsterba@suse.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
fs/btrfs/extent_map.c
fs/btrfs/raid56.c