Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030243AbWEYQVp (ORCPT ); Thu, 25 May 2006 12:21:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030244AbWEYQVp (ORCPT ); Thu, 25 May 2006 12:21:45 -0400 Received: from omx1-ext.sgi.com ([192.48.179.11]:17032 "EHLO omx1.americas.sgi.com") by vger.kernel.org with ESMTP id S1030243AbWEYQVo (ORCPT ); Thu, 25 May 2006 12:21:44 -0400 Date: Thu, 25 May 2006 09:21:07 -0700 (PDT) From: Christoph Lameter To: Peter Zijlstra cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Hugh Dickins , Andrew Morton , David Howells , Christoph Lameter , Martin Bligh , Nick Piggin , Linus Torvalds Subject: Re: [PATCH 1/3] mm: tracking shared dirty pages In-Reply-To: <20060525135555.20941.36612.sendpatchset@lappy> Message-ID: References: <20060525135534.20941.91650.sendpatchset@lappy> <20060525135555.20941.36612.sendpatchset@lappy> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 961 Lines: 27 On Thu, 25 May 2006, Peter Zijlstra wrote: > @@ -1446,12 +1447,13 @@ static int do_wp_page(struct mm_struct * > > - if (unlikely(vma->vm_flags & VM_SHARED)) { > + if (vma->vm_flags & VM_SHARED) { You add this unlikely later again it seems. Why remove in the first place? > +static int page_mkclean_one(struct page *page, struct vm_area_struct *vma) > + entry = pte_mkclean(pte_wrprotect(*pte)); > + ptep_establish(vma, address, pte, entry); > + update_mmu_cache(vma, address, entry); You only changed protections on an estisting pte and ptep_establish already flushed the tlb. No need to call update_mmu_cache. See how change_protection() in mm/mprotect.c does it. > + lazy_mmu_prot_update(entry); Needed. - 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/