Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <rostedt@goodmis.org>
Closes: https://lore.kernel.org/r/20250612224906.15000244@batman.local.home
Fixes: 13f06f48f7bf ("staging: erofs: support tracepoint")
Cc: stable@vger.kernel.org
Reviewed-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20250617054056.3232365-1-hsiangkao@linux.alibaba.com

Gao Xiang 30b58444 905eeb2b

-18
-18
include/trace/events/erofs.h
··· 211 211 show_mflags(__entry->mflags), __entry->ret) 212 212 ); 213 213 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 - 232 214 #endif /* _TRACE_EROFS_H */ 233 215 234 216 /* This part must be outside protection */