On Tue, 1 May 2007, Benjamin Herrenschmidt wrote: > >> 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. > > I have attached a patch (so pine does not mangle it) for linux-2.6.20.9. Is this what you had in mind? For linux-2.6.21, more work will be needed as it has more code calling ptep_set_access_flags. Regards Mark Fortescue.