ring-buffer: move page indexes into page headers
authorSteven Rostedt <rostedt@goodmis.org>
Sat, 4 Oct 2008 06:00:58 +0000 (02:00 -0400)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Oct 2008 08:39:18 +0000 (10:39 +0200)
commit6f807acd27734197b11d42829d3cbb9c0937b572
tree3587f14a894f05a607cc71fd1ee4e63a3eb3b679
parent097d036a2f25eecc42435c57e010aaf4a2eed2d9
ring-buffer: move page indexes into page headers

Remove the global head and tail indexes and move them into the
page header. Each page will now keep track of where the last
write and read was made. We also rename the head and tail to read
and write for better clarification.

This patch is needed for future enhancements to move the ring buffer
to a lockless solution.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/ring_buffer.c