From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 4F330DDF46 for ; Tue, 1 May 2007 12:06:09 +1000 (EST) Subject: Re: vm changes from linux-2.6.14 to linux-2.6.15 From: Benjamin Herrenschmidt To: Mark Fortescue In-Reply-To: References: <20070430145414.88fda272.akpm@linux-foundation.org> <20070430.150407.07642146.davem@davemloft.net> <1177977619.24962.6.camel@localhost.localdomain> <20070430.173806.112621225.davem@davemloft.net> Content-Type: text/plain Date: Tue, 01 May 2007 12:05:36 +1000 Message-Id: <1177985136.24962.8.camel@localhost.localdomain> Mime-Version: 1.0 Cc: linux-mm@kvack.org, wli@holomorphy.com, linuxppc-dev@ozlabs.org, andrea@suse.de, sparclinux@vger.kernel.org, akpm@linux-foundation.org, David Miller List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > At present, update_mmu_cache() and lazy_mmu_prot_update() are always > called when ptep_set_access_flags() is called so why not move them into > ptep_set_access_flags() and change ptep_set_access_flags() to have an > additional boolean parameter (__update) that would when set, cause > update_mmu_cache() and lazy_mmu_prot_update() to be called. Well, ptep_set_access_flags() is a low level arch hook, I'd rather not start hiding update_mmu_cache() calls in it ... Ben.