Re: Implementing writepage

Nikita Danilov
2003-10-27T08:52:06Z

David Woodhouse writes:
> On Mon, 2003-10-27 at 11:43 +0300, Nikita Danilov wrote:
> > By write(2)? May be I am missing something in this discussion, though.
>
> Either your commit_write() is synchronous or it does what writepage()
> would do anyway... which is to start the I/O but not wait for it.

I don't quite follow why. generic_commit_write() only marks buffers
dirty. Actual IO is started by either ->writepages() called from within
balance_dirty_pages() (or pdflush) or by ->writepage() called by VM
scanner.

>
> --
> dwmw2
>

Nikita.