On Tue, 2006-12-19 at 16:23 -0800, Linus Torvalds wrote: > Pls test. Is good. Only s390 remains a question. Another point, change_protection() also does a cache flush, should we too? > ---- > diff --git a/mm/rmap.c b/mm/rmap.c > index d8a842a..eec8706 100644 > --- a/mm/rmap.c > +++ b/mm/rmap.c > @@ -448,9 +448,10 @@ static int page_mkclean_one(struct page *page, struct vm_area_struct *vma) > goto unlock; > > entry = ptep_get_and_clear(mm, address, pte); flush_cache_page(vma, address, pte_pfn(entry)); > + flush_tlb_page(vma, address); > entry = pte_mkclean(entry); > entry = pte_wrprotect(entry); > - ptep_establish(vma, address, pte, entry); > + set_pte_at(mm, address, pte, entry); > lazy_mmu_prot_update(entry); > ret = 1; > > - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: 2.6.19 file content corruption on ext3
- From: Andrei Popa <[email protected]>
- Re: 2.6.19 file content corruption on ext3
- From: Andrew Morton <[email protected]>
- Re: 2.6.19 file content corruption on ext3
- From: Andrei Popa <[email protected]>
- Re: 2.6.19 file content corruption on ext3
- From: Andrew Morton <[email protected]>
- Re: 2.6.19 file content corruption on ext3
- From: Peter Zijlstra <[email protected]>
- Re: 2.6.19 file content corruption on ext3
- From: Linus Torvalds <[email protected]>
- Re: 2.6.19 file content corruption on ext3
- From: Peter Zijlstra <[email protected]>
- Re: 2.6.19 file content corruption on ext3
- From: Linus Torvalds <[email protected]>
- Re: 2.6.19 file content corruption on ext3
- From: Andrei Popa <[email protected]>
- Re: 2.6.19 file content corruption on ext3
- From: Linus Torvalds <[email protected]>
- Re: 2.6.19 file content corruption on ext3
- From: Andrei Popa <[email protected]>
- Re: 2.6.19 file content corruption on ext3
- From: Linus Torvalds <[email protected]>
- Re: 2.6.19 file content corruption on ext3
- From: Peter Zijlstra <[email protected]>
- Re: 2.6.19 file content corruption on ext3
- From: Linus Torvalds <[email protected]>
- Re: 2.6.19 file content corruption on ext3
- Prev by Date: Re: sysfs file creation result nightmare
- Next by Date: [GIT PATCH] ACPI patches for 2.6.20-rc1
- Previous by thread: Re: 2.6.19 file content corruption on ext3
- Next by thread: Re: 2.6.19 file content corruption on ext3
- Index(es):