commit | 0f2541d299d233eddddee4345795e0c46264fd56 | [log] [tgz] |
---|---|---|
author | Steven Rostedt <srostedt@redhat.com> | Wed Aug 05 12:02:48 2009 -0400 |
committer | Steven Rostedt <rostedt@goodmis.org> | Wed Aug 05 20:19:59 2009 -0400 |
tree | 19a1628703792d1e0ae8abe18c240d60a6e1705d | |
parent | e16852cfc5580b88cb327413ab8c89375f380592 [diff] |
ring-buffer: fix check of try_to_discard result The function ring_buffer_discard_commit inversed the code path of the result of try_to_discard. It should skip incrementing the entry counter if try_to_discard succeeded. But instead, it increments the entry conder if it succeeded to discard, and does not increment it if it fails. The result of this bug is that filtering will make the stat counters incorrect. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>