Skip to contentSkip to conversation

xfs: more unused events from linux-next

PATCH Applied Steven Rostedt 5 participants 9 messages Jul 22, 2025 – Jul 23, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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(-)
#1 lore raw

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.

Fixes d62016b1a2df ("xfs: avoid dquot buffer pin deadlock")
---
 fs/xfs/xfs_trace.h | 1 -
 1 file changed, 1 deletion(-)
fs/xfs/xfs_trace.h +0 -1
index 10d4fd671dcf..22c10a1b7fd3 100644
@@ -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
#2 lore raw

PATCH 2/4 xfs: remove unused trace event xfs_log_cil_return

In reply to Steven Rostedt

From: Steven Rostedt <[email protected]>

The trace event xfs_log_cil_return was added but never used. Remove it.

Fixes c1220522ef405 ("xfs: grant heads track byte counts, not LSNs")
---
 fs/xfs/xfs_trace.h | 1 -
 1 file changed, 1 deletion(-)
fs/xfs/xfs_trace.h +0 -1
index 22c10a1b7fd3..4ce8689ed839 100644
@@ -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
#3 lore raw

PATCH 3/4 xfs: remove unused trace event xfs_discard_rtrelax

In reply to Steven Rostedt

From: Steven Rostedt <[email protected]>

The trace event xfs_discard_rtrelax was added but never used. Remove it.

Fixes a330cae8a7147 ("xfs: Remove header files which are included more than once")
---
 fs/xfs/xfs_trace.h | 1 -
 1 file changed, 1 deletion(-)
fs/xfs/xfs_trace.h +0 -1
index 4ce8689ed839..1061992da144 100644
@@ -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
#4 lore raw

PATCH 4/4 xfs: remove unused trace event xfs_reflink_cow_enospc

In reply to Steven Rostedt

From: 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.

Fixes db46e604adf8 ("xfs: merge COW handling into xfs_file_iomap_begin_delay")
---
 fs/xfs/xfs_trace.h | 1 -
 1 file changed, 1 deletion(-)
fs/xfs/xfs_trace.h +0 -1
index 1061992da144..e1794e3e3156 100644
@@ -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
Reviewed-by on the v1 series
#5 lore raw
In reply to Steven Rostedt
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 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

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(-)
maintainer
#6 lore raw
Quoted 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 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

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.

Thanks. I'm guessing this will also go through the xfs tree?

-- Steve

maintainer Applied
#8 lore raw
In reply to Steven Rostedt
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 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

[...]

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: 10a957e43f28105ceb7b8e31a918d1c47cd4df3e

Best regards,

Signature · 1 line
Carlos Maiolino <[email protected]>