xfs: more unused events from linux-next
Subsystems (2)
cover xfs: more unused events from linux-next
I reran the unused tracepoint code on the latest linux-next and found more xfs trace events. One was recently added but the rest were there before. Not sure how I missed them.
But anyway, here's a few more patches to remove unused xfs trace events.
Steven Rostedt (4):
xfs: remove unused trace event xfs_dqreclaim_dirty
xfs: remove unused trace event xfs_log_cil_return
xfs: remove unused trace event xfs_discard_rtrelax
xfs: remove unused trace event xfs_reflink_cow_enospc
----
fs/xfs/xfs_trace.h | 4 ---- 1 file changed, 4 deletions(-)
PATCH 1/4 xfs: remove unused trace event xfs_dqreclaim_dirty
From: Steven Rostedt <[email protected]>
The tracepoint trace_xfs_dqreclaim_dirty was removed with other code removed from xfs_qm_dquot_isolate() but the defined tracepoint was not.
--- fs/xfs/xfs_trace.h | 1 - 1 file changed, 1 deletion(-)
fs/xfs/xfs_trace.h +0 -1
@@ -1396,7 +1396,6 @@ DEFINE_EVENT(xfs_dquot_class, name, \ TP_ARGS(dqp))DEFINE_DQUOT_EVENT (xfs_dqadjust);DEFINE_DQUOT_EVENT (xfs_dqreclaim_want); -DEFINE_DQUOT_EVENT (xfs_dqreclaim_dirty);DEFINE_DQUOT_EVENT (xfs_dqreclaim_busy);DEFINE_DQUOT_EVENT (xfs_dqreclaim_done);DEFINE_DQUOT_EVENT (xfs_dqattach_found);
Signature · 1 line
2.47.2
PATCH 2/4 xfs: remove unused trace event xfs_log_cil_return
In reply to Steven RostedtFrom: Steven Rostedt <[email protected]>
The trace event xfs_log_cil_return was added but never used. Remove it.
--- fs/xfs/xfs_trace.h | 1 - 1 file changed, 1 deletion(-)
fs/xfs/xfs_trace.h +0 -1
@@ -1600,7 +1600,6 @@ DEFINE_LOGGRANT_EVENT(xfs_log_ticket_ungrant);DEFINE_LOGGRANT_EVENT (xfs_log_ticket_ungrant_sub);DEFINE_LOGGRANT_EVENT (xfs_log_ticket_ungrant_exit);DEFINE_LOGGRANT_EVENT (xfs_log_cil_wait); -DEFINE_LOGGRANT_EVENT (xfs_log_cil_return); DECLARE_EVENT_CLASS(xfs_log_item_class, TP_PROTO(struct xfs_log_item *lip),
Signature · 1 line
2.47.2
PATCH 3/4 xfs: remove unused trace event xfs_discard_rtrelax
In reply to Steven RostedtFrom: Steven Rostedt <[email protected]>
The trace event xfs_discard_rtrelax was added but never used. Remove it.
--- fs/xfs/xfs_trace.h | 1 - 1 file changed, 1 deletion(-)
fs/xfs/xfs_trace.h +0 -1
@@ -2858,7 +2858,6 @@ DEFINE_EVENT(xfs_rtdiscard_class, name, \ TP_ARGS(mp, rtbno, len))DEFINE_RTDISCARD_EVENT (xfs_discard_rtextent);DEFINE_RTDISCARD_EVENT (xfs_discard_rttoosmall); -DEFINE_RTDISCARD_EVENT (xfs_discard_rtrelax); DECLARE_EVENT_CLASS(xfs_btree_cur_class, TP_PROTO(struct xfs_btree_cur *cur, int level, struct xfs_buf *bp),
Signature · 1 line
2.47.2
PATCH 4/4 xfs: remove unused trace event xfs_reflink_cow_enospc
In reply to Steven RostedtFrom: Steven Rostedt <[email protected]>
The call to the event xfs_reflink_cow_enospc was removed when the COW handling was merged into xfs_file_iomap_begin_delay, but the trace event itself was not. Remove it.
--- fs/xfs/xfs_trace.h | 1 - 1 file changed, 1 deletion(-)
fs/xfs/xfs_trace.h +0 -1
@@ -4181,7 +4181,6 @@ DEFINE_INODE_ERROR_EVENT(xfs_reflink_unshare_error);/* copy on write */ DEFINE_INODE_IREC_EVENT (xfs_reflink_trim_around_shared);DEFINE_INODE_IREC_EVENT (xfs_reflink_cow_found); -DEFINE_INODE_IREC_EVENT (xfs_reflink_cow_enospc);DEFINE_INODE_IREC_EVENT (xfs_reflink_convert_cow);DEFINE_SIMPLE_IO_EVENT (xfs_reflink_cancel_cow_range);
Signature · 1 line
2.47.2
Quoted 5 lines · Steven Rostedt
I reran the unused tracepoint code on the latest linux-next and found more xfs trace events. One was recently added but the rest were there before. Not sure how I missed them.
Quoted 7 lines
But anyway, here's a few more patches to remove unused xfs trace events.
Steven Rostedt (4):
xfs: remove unused trace eventxfs_dqreclaim_dirty
xfs: remove unused trace eventxfs_log_cil_return
xfs: remove unused trace eventxfs_discard_rtrelax
xfs: remove unused trace eventxfs_reflink_cow_enospc
I can directly take responsibility for 1, 3, and 4 -- those aren't going to come back. Patch 2 looks like an accidental add, and if anyone wants it they can always add it back.
--D
Quoted 5 lines
----
fs/xfs/xfs_trace.h | 4 ---- 1 file changed, 4 deletions(-)
Steven Rostedt
maintainerQuoted 14 lines · On Tue, 22 Jul 2025 16:28:42 -0700 "Darrick J. Wong" <[email protected]> wrote:
Quoted 5 lines · Steven Rostedt
I reran the unused tracepoint code on the latest linux-next and found more xfs trace events. One was recently added but the rest were there before. Not sure how I missed them.
Quoted 7 lines
But anyway, here's a few more patches to remove unused xfs trace events.
Steven Rostedt (4):
xfs: remove unused trace eventxfs_dqreclaim_dirty
xfs: remove unused trace eventxfs_log_cil_return
xfs: remove unused trace eventxfs_discard_rtrelax
xfs: remove unused trace eventxfs_reflink_cow_enospc
Quoted 5 lines
I can directly take responsibility for 1, 3, and 4 -- those aren't going to come back. Patch 2 looks like an accidental add, and if anyone wants it they can always add it back.
Reviewed-by "Darrick J. Wong" <[email protected]>
Thanks. I'm guessing this will also go through the xfs tree?
-- Steve
The entire series looks good to me:
Quoted 6 lines · Steven Rostedt
I reran the unused tracepoint code on the latest linux-next and found more xfs trace events. One was recently added but the rest were there before. Not sure how I missed them.
But anyway, here's a few more patches to remove unused xfs trace events.
Quoted 7 lines
Steven Rostedt (4):
xfs: remove unused trace eventxfs_dqreclaim_dirty
xfs: remove unused trace eventxfs_log_cil_return
xfs: remove unused trace eventxfs_discard_rtrelax
xfs: remove unused trace eventxfs_reflink_cow_enospc[...]
Applied to for-next, thanks!
[1/4] xfs: remove unused trace event xfs_dqreclaim_dirty
commit: 1edc170bb24082785e5825c46a36af8ae12ac762
[2/4] xfs: remove unused trace event xfs_log_cil_return
commit: 55edb3326b4b07117d0c26cd67d86fb8518ee906
[3/4] xfs: remove unused trace event xfs_discard_rtrelax
commit: c17f506f0abe67b6009c0d126da81a71fc1e00c1
[4/4] xfs: remove unused trace event xfs_reflink_cow_enospc
commit: 10a957e43f28105ceb7b8e31a918d1c47cd4df3eBest regards,
Signature · 1 line
Carlos Maiolino <[email protected]>