]> git.baikalelectronics.ru Git - kernel.git/commit
ring-buffer: Remove unnecessary recusive call in rb_advance_iter()
authorSteven Rostedt <srostedt@redhat.com>
Fri, 30 Nov 2012 15:41:57 +0000 (10:41 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 21 Jan 2013 18:22:29 +0000 (13:22 -0500)
commitdae03b284373ae96ed3a932b4cabd78d355d1c6a
tree6d133d84777c6161520ab00a8ce8f016fd1bf261
parent0d637b28b711da24fd2b212c15c2386fb86f657b
ring-buffer: Remove unnecessary recusive call in rb_advance_iter()

The original ring-buffer code had special checks at the start
of rb_advance_iter() and instead of repeating them again at the
end of the function if a certain condition existed, I just did
a recursive call to rb_advance_iter() because the special condition
would cause rb_advance_iter() to return early (after the checks).

But as things have changed, the special checks no longer exist
and the only thing done for the special_condition is to call
rb_inc_iter() and return. Instead of doing a confusing recursive call,
just call rb_inc_iter instead.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c