Re: o_sync in vfat driver

From: Chris Mason
Date: Thu Mar 02 2006 - 08:43:02 EST


On Wednesday 01 March 2006 20:15, OGAWA Hirofumi wrote:

> > Just to make sure we're using the same terms, do you mean the pages are
> > marked dirty and on the SB's dirty list, or do you mean the page has been
> > through writepage and is currently on its way to the disk?
>
> The page is already on device's request queue, and the page is already
> marked a PG_writeback. And that page is not processed by device yet.
>
> Then, you call next filemap_fdatawrite(), it just re-dirty the page
> and queues to sb->s_dirty, because the page's buffer_heads is still
> locked. So, the re-dirtyed page is re-submited to device by
> periodically wb_kupdate()?

filemap_fdatawrite() won't redirty the page. It will wait on the pending
writeback.

-chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/