ext4: clear the dirty bit for a page in writeback at the last minute
authorTheodore Ts'o <tytso@mit.edu>
Sat, 26 Feb 2011 19:08:01 +0000 (14:08 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 26 Feb 2011 19:08:01 +0000 (14:08 -0500)
commit9749895644a817cfd28a535bc3ae60e4267bdc50
treea0958777287906320aba461690125d8786ceb565
parent4f01b02c8c4e4111bd1adbcafb5741e8e991f5fd
ext4: clear the dirty bit for a page in writeback at the last minute

Move when we call clear_page_dirty_for_io() to just before we actually
write the page.  This simplifies the code somewhat, and avoids marking
pages as clean and then needing to remark them as dirty later.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c