]> Pileus Git - ~andy/linux/commit
ring-buffer: Fix accounting of entries when removing pages
authorVaibhav Nagarnaik <vnagarnaik@google.com>
Fri, 29 Jun 2012 19:31:41 +0000 (12:31 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 29 Jun 2012 20:17:17 +0000 (16:17 -0400)
commit48fdc72f23ad9a9956e524a47843135d0bbc3317
treebaaec367ed2c155d35c76b6d79b7bf1eb9092af7
parent44b99462d9d776522e174d6c531ce5ccef309e26
ring-buffer: Fix accounting of entries when removing pages

When removing pages from the ring buffer, its state is not reset. This
means that the counters need to be correctly updated to account for the
pages removed.

Update the overrun counter to reflect the removed events from the pages.

Link: http://lkml.kernel.org/r/1340998301-1715-1-git-send-email-vnagarnaik@google.com
Cc: Justin Teravest <teravest@google.com>
Cc: David Sharp <dhsharp@google.com>
Signed-off-by: Vaibhav Nagarnaik <vnagarnaik@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c