tracing: Kill trace_create_file_ops() and friends
authorOleg Nesterov <oleg@redhat.com>
Wed, 31 Jul 2013 17:31:32 +0000 (19:31 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 22 Aug 2013 02:31:23 +0000 (22:31 -0400)
trace_create_file_ops() allocates the copy of id/filter/format/enable
file_operations to set "f_op->owner = mod" for fops_get().

However after the recent changes there is no reason to prevent rmmod
even if one of these files is opened. A file operation can do nothing
but fail after remove_event_file_dir() clears ->i_private for every
file removed by trace_module_remove_events().

Kill "struct ftrace_module_file_ops" and fix the compilation errors.

Link: http://lkml.kernel.org/r/20130731173132.GA31033@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events.c

Simple merge