From: laijs@cn.fujitsu.com (Lai Jiangshan)
Subject: [ltt-dev] [PATCH 1/2] ltt-relay: remove unused field of struct buf_page
Date: Fri, 27 Feb 2009 16:11:43 +0800 [thread overview]
Message-ID: <49A7A03F.2020005@cn.fujitsu.com> (raw)
struct rchan_buf *buf in struct buf_page is unused,
this patch remove it.
Signed-off-by: Lai Jiangshan <laijs at cn.fujitsu.com>
---
diff --git a/include/linux/ltt-relay.h b/include/linux/ltt-relay.h
index ac3415a..8d23352 100644
--- a/include/linux/ltt-relay.h
+++ b/include/linux/ltt-relay.h
@@ -34,7 +34,6 @@ struct rchan_buf;
struct buf_page {
struct page *page;
- struct rchan_buf *buf; /* buffer the page belongs to */
size_t offset; /* page offset in the buffer */
struct list_head list; /* buffer linked list */
};
diff --git a/ltt/ltt-relay-alloc.c b/ltt/ltt-relay-alloc.c
index 0f92518..91c12d4 100644
--- a/ltt/ltt-relay-alloc.c
+++ b/ltt/ltt-relay-alloc.c
@@ -55,7 +55,6 @@ static int relay_alloc_buf(struct rchan_buf *buf, size_t *size)
}
list_add_tail(&buf_page->list, &buf->pages);
buf_page->offset = (size_t)i << PAGE_SHIFT;
- buf_page->buf = buf;
set_page_private(buf_page->page, (unsigned long)buf_page);
if (i == 0) {
buf->wpage = buf_page;
reply other threads:[~2009-02-27 8:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=49A7A03F.2020005@cn.fujitsu.com \
--to=laijs@cn.fujitsu.com \
/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