[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/