[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080619181406.E808.KOSAKI.MOTOHIRO@jp.fujitsu.com>
Date: Thu, 19 Jun 2008 18:15:40 +0900
From: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
To: LKML <linux-kernel@...r.kernel.org>, linux-mm <linux-mm@...ck.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Lee Schermerhorn <Lee.Schermerhorn@...com>
Cc: kosaki.motohiro@...fujitsu.com
Subject: [-mm][PATCH 3/5] collect lru meminfo statistics from correct offset
From: Lee Schermerhorn <lee.schermerhorn@...com>
PATCH collect lru meminfo statistics from correct offset
Against: 2.6.26-rc5-mm3
Offset 'lru' by 'NR_LRU_BASE' to obtain global page state for
lru list 'lru'.
Signed-off-by: Lee Schermerhorn <lee.schermerhorn@...com>
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
fs/proc/proc_misc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: b/fs/proc/proc_misc.c
===================================================================
--- a/fs/proc/proc_misc.c
+++ b/fs/proc/proc_misc.c
@@ -158,7 +158,7 @@ static int meminfo_read_proc(char *page,
get_vmalloc_info(&vmi);
for (lru = LRU_BASE; lru < NR_LRU_LISTS; lru++)
- pages[lru] = global_page_state(lru);
+ pages[lru] = global_page_state(NR_LRU_BASE + lru);
/*
* Tagged format, for easy grepping and expansion.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists