ring-buffer: remove unneeded conditional in rb_reserve_next
authorSteven Rostedt <srostedt@redhat.com>
Wed, 6 May 2009 14:26:45 +0000 (10:26 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 6 May 2009 16:49:19 +0000 (12:49 -0400)
commit8e7abf1c62941ebb7a1416cbc62392c8a0902625
tree72b62a8ce2cecee2ed0cff586fb8bed10cf0eb2d
parent35cf723e99c0e26ddf51f037dffaa4ff2c2c9106
ring-buffer: remove unneeded conditional in rb_reserve_next

The code in __rb_reserve_next checks on page overflow if it is the
original commiter and then resets the page back to the original
setting.  Although this is fine, and the code is correct, it is
a bit fragil. Some experimental work I did breaks it easily.

The better and more robust solution is to have all commiters that
overflow the page, simply subtract what they added.

[ Impact: more robust ring buffer account management ]

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