Re: [PATCH] ring_buffer: remove unused ring_buffer size

From: Ingo Molnar
Date: Thu Dec 18 2008 - 07:50:42 EST



* Lai Jiangshan <laijs@xxxxxxxxxxxxxx> wrote:

> struct ring_buffer.size is not set after ring_buffer is initialized
> or resized. it is always 0.
>
> we can use "buffer->pages * BUF_PAGE_SIZE" to get ring_buffer's size
>
> Signed-off-by: Lai Jiangshan <laijs@xxxxxxxxxxxxxx>

applied to tip/tracing/ring-buffer, thanks!

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/