From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
From: Lee Schermerhorn <lee.schermerhorn@hp.com>
To: LKML <linux-kernel@vger.kernel.org>,
linux-mm <linux-mm@kvack.org>,
Andrew Morton <akpm@linux-foundation.org>,
Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Cc: kosaki.motohiro@jp.fujitsu.com
Subject: [-mm][PATCH 3/5] collect lru meminfo statistics from correct offset
Date: Thu, 19 Jun 2008 18:15:40 +0900 [thread overview]
Message-ID: <20080619181406.E808.KOSAKI.MOTOHIRO@jp.fujitsu.com> (raw)
In-Reply-To: <20080619172241.E7FC.KOSAKI.MOTOHIRO@jp.fujitsu.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@hp.com>
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-06-19 9:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-19 9:07 [-mm][PATCH 0/5] memory related bugfix set for 2.6.26-rc5-mm3 KOSAKI Motohiro
2008-06-19 9:08 ` [-mm][PATCH 1/5] fix munlock page table walk KOSAKI Motohiro, Lee Schermerhorn
2008-06-19 9:13 ` [-mm][PATCH 2/5] migration_entry_wait fix KOSAKI Motohiro, Daisuke Nishimura
2008-06-19 9:15 ` KOSAKI Motohiro, Lee Schermerhorn [this message]
2008-06-19 9:17 ` [-mm][PATCH 4/5] fix incorrect Mlocked field of /proc/meminfo KOSAKI Motohiro
2008-06-19 9:20 ` [-mm][PATCH 5/5] putback_lru_page()/unevictable page handling rework v2 KOSAKI Motohiro
2008-06-19 9:31 ` KOSAKI Motohiro
2008-06-19 9:38 ` [-mm][PATCH 0/5] memory related bugfix set for 2.6.26-rc5-mm3 KOSAKI Motohiro
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=20080619181406.E808.KOSAKI.MOTOHIRO@jp.fujitsu.com \
--to=kosaki.motohiro@jp.fujitsu.com \
--cc=Lee.Schermerhorn@hp.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.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