Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756461AbYFYKH5 (ORCPT ); Wed, 25 Jun 2008 06:07:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754490AbYFYKHs (ORCPT ); Wed, 25 Jun 2008 06:07:48 -0400 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:59491 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754303AbYFYKHr (ORCPT ); Wed, 25 Jun 2008 06:07:47 -0400 Date: Wed, 25 Jun 2008 19:06:35 +0900 From: KOSAKI Motohiro To: LKML , linux-mm , Andrew Morton , Lee Schermerhorn , Rik van Riel , Hugh Dickins Subject: [-mm][PATCH 6/10] fix incorrect Mlocked field of /proc/meminfo 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: <20080625190542.D85E.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: 987 Lines: 33 Against: 2.6.26-rc5-mm3 Mlocked field of /proc/meminfo display silly number. because trivial mistake exist in meminfo_read_proc(). Signed-off-by: Hugh Dickins 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 @@ -216,7 +216,7 @@ static int meminfo_read_proc(char *page, K(pages[LRU_INACTIVE_FILE]), #ifdef CONFIG_UNEVICTABLE_LRU K(pages[LRU_UNEVICTABLE]), - K(pages[NR_MLOCK]), + K(global_page_state(NR_MLOCK)), #endif #ifdef CONFIG_HIGHMEM K(i.totalhigh), -- 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/