writeback: Update dirty flags in two steps
authorDmitry Monakhov <dmonakhov@openvz.org>
Fri, 7 May 2010 09:35:44 +0000 (13:35 +0400)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 17 May 2010 11:00:41 +0000 (13:00 +0200)
commit5547e8aac6f71505d621a612de2fca0dd988b439
tree36bb4a62fe5773c5acd43c9e72dca1c2f32b1bff
parente913fc825dc685a444cb4c1d0f9d32f372f59861
writeback: Update dirty flags in two steps

Filesystems with delalloc support may dirty inode during writepages.
As result inode will have dirty metadata flags even after write_inode.
In fact we have two dedicated functions for proper data and metadata
writeback. It is reasonable to separate flags updates in two stages.

https://bugzilla.kernel.org/show_bug.cgi?id=15906

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/fs-writeback.c