ftrace: Clean up the recursion code a bit
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 30 Oct 2020 21:21:00 +0000 (17:21 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 11 Nov 2020 01:39:40 +0000 (20:39 -0500)
commit7b68621f8d16689cbb4203aceaca86ffb165f1d0
treedfcd327cd822792877e2b007a9bc079d0ddd94fe
parent60602cb549f1965a7edbc96026760dfb93911fab
ftrace: Clean up the recursion code a bit

In trace_test_and_set_recursion(), current->trace_recursion is placed into a
variable, and that variable should be used for the processing, as there's no
reason to dereference current multiple times.

On trace_clear_recursion(), current->trace_recursion is modified and there's
no reason to copy it over to a variable.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/trace_recursion.h