From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 18 Jun 2008 15:08:02 +0900 From: KOSAKI Motohiro Subject: [PATCH][-mm] fix incorrect Mlocked field of /proc/meminfo. Message-Id: <20080618150253.37AD.KOSAKI.MOTOHIRO@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: linux-mm , LKML , Rik van Riel , Lee Schermerhorn , Andrew Morton Cc: kosaki.motohiro@jp.fujitsu.com List-ID: Mlocked field of /proc/meminfo display silly number. because trivial mistake exist in meminfo_read_proc(). 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, 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