Commit 31b98ef2 authored by Steven Rostedt's avatar Steven Rostedt Committed by Carlos Maiolino
Browse files

xfs: only create event xfs_file_compat_ioctl when CONFIG_COMPAT is configure



The trace event xfs_file_compat_ioctl is only used when CONFIG_COMPAT is
configured in the build. As trace events can take up to 5K in memory for
text and meta data regardless if they are used, they should not be created
when unused. Add #ifdef CONFIG_COMPAT around the event so that it is only
created when that is configured.

Fixes: cca28fb8 ("xfs: split xfs_itrace_entry")
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: default avatarCarlos Maiolino <cem@kernel.org>
parent 9a8a536f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment