Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756289AbYFYKHE (ORCPT ); Wed, 25 Jun 2008 06:07:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754798AbYFYKGy (ORCPT ); Wed, 25 Jun 2008 06:06:54 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:43234 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754247AbYFYKGy (ORCPT ); Wed, 25 Jun 2008 06:06:54 -0400 Date: Wed, 25 Jun 2008 19:05:38 +0900 From: KOSAKI Motohiro To: LKML , linux-mm , Andrew Morton , Lee Schermerhorn , Rik van Riel Subject: [-mm][PATCH 5/10] collect lru meminfo statistics from correct offset Cc: kosaki.motohiro@jp.fujitsu.com In-Reply-To: <20080625185717.D84C.KOSAKI.MOTOHIRO@jp.fujitsu.com> References: <20080625185717.D84C.KOSAKI.MOTOHIRO@jp.fujitsu.com> Message-Id: <20080625190451.D85B.KOSAKI.MOTOHIRO@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.42 [ja] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1049 Lines: 35 = From: Lee Schermerhorn 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 Signed-off-by: KOSAKI Motohiro 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/