Skip to content

Commit 30b5844

Browse files
committed
erofs: remove unused trace event erofs_destroy_inode
The trace event `erofs_destroy_inode` was added but remains unused. This unused event contributes approximately 5KB to the kernel module size. Reported-by: Steven Rostedt <[email protected]> Closes: https://lore.kernel.org/r/[email protected] Fixes: 13f06f4 ("staging: erofs: support tracepoint") Cc: [email protected] Reviewed-by: Hongbo Li <[email protected]> Signed-off-by: Gao Xiang <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 905eeb2 commit 30b5844

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

include/trace/events/erofs.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -211,24 +211,6 @@ TRACE_EVENT(erofs_map_blocks_exit,
211211
show_mflags(__entry->mflags), __entry->ret)
212212
);
213213

214-
TRACE_EVENT(erofs_destroy_inode,
215-
TP_PROTO(struct inode *inode),
216-
217-
TP_ARGS(inode),
218-
219-
TP_STRUCT__entry(
220-
__field( dev_t, dev )
221-
__field( erofs_nid_t, nid )
222-
),
223-
224-
TP_fast_assign(
225-
__entry->dev = inode->i_sb->s_dev;
226-
__entry->nid = EROFS_I(inode)->nid;
227-
),
228-
229-
TP_printk("dev = (%d,%d), nid = %llu", show_dev_nid(__entry))
230-
);
231-
232214
#endif /* _TRACE_EROFS_H */
233215

234216
/* This part must be outside protection */

0 commit comments

Comments
 (0)