Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756101AbYFYKF1 (ORCPT ); Wed, 25 Jun 2008 06:05:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754691AbYFYKFR (ORCPT ); Wed, 25 Jun 2008 06:05:17 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:43175 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754447AbYFYKFP (ORCPT ); Wed, 25 Jun 2008 06:05:15 -0400 Date: Wed, 25 Jun 2008 19:03:36 +0900 From: KOSAKI Motohiro To: LKML , linux-mm , Andrew Morton , Lee Schermerhorn , Rik van Riel Subject: [-mm][PATCH 3/10] fix munlock page table walk - now requires 'mm' 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: <20080625190251.D855.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: 1322 Lines: 43 = From: Lee Schermerhorn Against 2.6.26-rc5-mm3. Initialize the 'mm' member of the mm_walk structure, else the page table walk doesn't occur, and mlocked pages will not be munlocked. This is visible in the vmstats: noreclaim_pgs_munlocked - should equal noreclaim_pgs_mlocked less (nr_mlock + noreclaim_pgs_cleared), but is always zero [munlock_vma_page() never called] noreclaim_pgs_mlockfreed - should be zero [for debug only], but == noreclaim_pgs_mlocked - (nr_mlock + noreclaim_pgs_cleared) Signed-off-by: Lee Schermerhorn Signed-off-by: KOSAKI Motohiro mm/mlock.c | 1 + 1 file changed, 1 insertion(+) Index: b/mm/mlock.c =================================================================== --- a/mm/mlock.c +++ b/mm/mlock.c @@ -301,6 +301,7 @@ static void __munlock_vma_pages_range(st .pmd_entry = __munlock_pmd_handler, .pte_entry = __munlock_pte_handler, .private = &mpw, + .mm = mm, }; VM_BUG_ON(start & ~PAGE_MASK || end & ~PAGE_MASK); -- 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/