From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: [PATCH] collect lru meminfo statistics from correct offset From: Lee Schermerhorn In-Reply-To: <20080613134827.5dbac5ac@cuia.bos.redhat.com> References: <20080611184214.605110868@redhat.com> <20080611184339.159161465@redhat.com> <4851C1CC.7070607@ct.jp.nec.com> <20080613134827.5dbac5ac@cuia.bos.redhat.com> Content-Type: text/plain Date: Fri, 13 Jun 2008 16:21:47 -0400 Message-Id: <1213388507.9670.35.camel@lts-notebook> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Rik van Riel , linux-mm List-ID: PATCH collect lru meminfo statistics from correct offset Against: 2.6.26-rc5-mm3 Incremental fix to: vmscan-split-lru-lists-into-anon-file-sets.patch Offset 'lru' by 'NR_LRU_BASE' to obtain global page state for lru list 'lru'. Signed-off-by: Lee Schermerhorn fs/proc/proc_misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.26-rc5-mm3/fs/proc/proc_misc.c =================================================================== --- linux-2.6.26-rc5-mm3.orig/fs/proc/proc_misc.c 2008-06-13 15:16:17.000000000 -0400 +++ linux-2.6.26-rc5-mm3/fs/proc/proc_misc.c 2008-06-13 15:44:24.000000000 -0400 @@ -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: email@kvack.org