Re: PATCH [2.4.0test10]: Kiobuf#02, fault-in fix

Andrea Arcangeli
2000-11-06T16:12:04Z

On Mon, Nov 06, 2000 at 03:05:39PM +0000, Stephen C. Tweedie wrote:
> Why?

I think to avoid losing a write.

handle_mm_fault()
pte is dirty
pager write it out and make it clean
since it's not pinned on the
physical side yet so it's allowed
grab pagetable lock
follow_page()
pte is writeable but not dirty
pin the page on the physical side to inibith the swapper
unlock the pagetable lock

read from disk and write to memory

now the pte is clean and the page won't be synced back while
closing the file or during msync

Andrea