tracing: toplevel d_entry already initialized
authorWei Yang <richard.weiyang@linux.alibaba.com>
Sun, 12 Jul 2020 01:10:35 +0000 (09:10 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Sat, 19 Sep 2020 02:17:14 +0000 (22:17 -0400)
commitdc300d77b86a122d3fd099206e1adf699ed80bd7
tree56c4a404067873c29a3d629eb35b3acae972b4a4
parent5675fd4ef51f0b505a7f802e4d23a37336d521f0
tracing: toplevel d_entry already initialized

Currently we have following call flow:

    tracer_init_tracefs()
        tracing_init_dentry()
        event_trace_init()
            tracing_init_dentry()

This shows tracing_init_dentry() is called twice in this flow and this
is not necessary.

Let's remove the second one when it is for sure be properly initialized.

Link: https://lkml.kernel.org/r/20200712011036.70948-4-richard.weiyang@linux.alibaba.com
Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_events.c