From: Ingo Molnar <mingo@elte.hu>
To: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ring_buffer: remove unused ring_buffer size
Date: Thu, 18 Dec 2008 13:50:14 +0100 [thread overview]
Message-ID: <20081218125014.GA32135@elte.hu> (raw)
In-Reply-To: <4948CAE7.107@cn.fujitsu.com>
* 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
prev parent reply other threads:[~2008-12-18 12:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-17 9:48 [PATCH] ring_buffer: remove unused ring_buffer size Lai Jiangshan
2008-12-18 12:50 ` Ingo Molnar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081218125014.GA32135@elte.hu \
--to=mingo@elte.hu \
--cc=laijs@cn.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox