Re: [patch 2/6] mmu_notifier: Callbacks to invalidate address ranges

Peter Zijlstra
2008-01-30T08:27:21Z

On Wed, 2008-01-30 at 01:59 +0100, Andrea Arcangeli wrote:
> On Tue, Jan 29, 2008 at 04:22:46PM -0800, Christoph Lameter wrote:
> > That is only partially true. pte are created wronly in order to track
> > dirty state these days. The first write will lead to a fault that switches
> > the pte to writable. When the page undergoes writeback the page again
> > becomes write protected. Thus our need to effectively deal with
> > page_mkclean.
>
> Well I was talking about anonymous memory.

Just to be absolutely clear on this (I lost track of what exactly we are
talking about here), nonlinear mappings no not do the dirty accounting,
and are not allowed on a backing store that would require dirty
accounting.