[ltt-dev] [PATCH 1/2] ltt-relay: remove unused field of struct buf_page

Lai Jiangshan laijs at cn.fujitsu.com
Fri Feb 27 03:11:43 EST 2009


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;





More information about the lttng-dev mailing list