]> git.baikalelectronics.ru Git - kernel.git/commit
ring-buffer: remove useless compile check for buffer_page size
authorSteven Rostedt <srostedt@redhat.com>
Wed, 17 Jun 2009 18:03:44 +0000 (14:03 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 17 Jun 2009 18:16:07 +0000 (14:16 -0400)
commit39dc3dc50e39186bbea02866e4c80a3a4c18b8e5
tree4798b2172902f8ce4dc81856ee1d858909147824
parent1e4fda44d61e1560dfb65fa582d6bee621f8b7c8
ring-buffer: remove useless compile check for buffer_page size

The original version of the ring buffer had a hack to map the
page struct that held the pages of the buffer to also be the structure
that the ring buffer would keep the pages in a link list.

This overlap of the page struct was very dangerous and that hack was
removed a while ago.

But there was a check to make sure the buffer_page never became bigger
than the page struct, and would fail the compile if it did. The
check was only meaningful when we had the hack. Now that we have separate
allocated descriptors for the buffer pages, we can remove this check.

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