On Mon, Mar 30, 2009 at 10:15:51AM -0400, Chris Mason wrote:
Well, his patch actually added some calls to block_issue_flush(). But
yes, it's probably better if he just changes the existing call points,
and we can have the relevant filesystem maintainers double check to
make sure that there aren't any new call points which are needed.
Yes, good point. What we need to do is to save inode->i_state
*before* the call to sync_inode(), and issue the flush if the original
value of (inode->i_state & I_DIRTY) == I_DIRTY_PAGES. But yeah,
that's tricky.
Agreed.
- Ted
--