The patch looks OK to me.
On Thu, 26 Mar 2009 19:11:06 +0100 Jan Kara <jack@suse.cz> wrote:
This will attach dirty buffers to a clean page, which is an invalid
state (but OK if we immediately fix it up).
And if this error happens we'll go on to run
redirty_page_for_writepage() which will do the right thing.
However if PageMappedToDisk() is working right, we should be able to
avoid that newly-added buffer walk. Possibly SetPageMappedToDisk()
isn't being run in all the right places though, dunno.
--