tracing: Introduce remove_event_file_dir()
authorOleg Nesterov <oleg@redhat.com>
Fri, 26 Jul 2013 17:25:47 +0000 (19:25 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 30 Jul 2013 02:57:10 +0000 (22:57 -0400)
commitf6a84bdc75b5c11621dec58db73fe102cbaf40cc
tree9200a7b2eae75c9ce783f82ad396fe09aab6feae
parentc5a44a1200c6eda2202434f25325e8ad19533fca
tracing: Introduce remove_event_file_dir()

Preparation for the next patch. Extract the common code from
remove_event_from_tracers() and __trace_remove_event_dirs()
into the new helper, remove_event_file_dir().

The patch looks more complicated than it actually is, it also
moves remove_subsystem() up to avoid the forward declaration.

Link: http://lkml.kernel.org/r/20130726172547.GA3629@redhat.com
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_events.c