lkml.org 
[lkml]   [2008]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ring_buffer: remove unused ring_buffer size

* Lai Jiangshan <laijs@cn.fujitsu.com> 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@cn.fujitsu.com>

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

Ingo


\
 
 \ /
  Last update: 2008-12-18 13:53    [W:0.049 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site