Hi,

On Wed, 2005-02-09 at 18:38, Badari Pulavarty wrote:

> I was under the impression that writepage() could also be used to
> flush the data even for write(2) writes. Is it not true ? 

That _can_ happen, certainly.  But it's not the default path.  There's
nothing that stops a deferred writeback from write(2) from subsequently
getting flushed by a writepage(), if the VM decides that it needs to
push that page to disk before the writeback background flush has
happened.

> I was trying to add writepages() interface for ext3. I am wondering
> if I need to do journaling for that case too.

Yes.  If you implement writepages(), then msync() will ultimately use
that for flushing file regions; and as that represents mmap()ed data, it
could easily cover holes in the file, and allocation may be necessary.

Cheers,
  Stephen

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to