Skip to content
Commit cb20d518 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: inline ext4_writepage() into mpage_da_submit_io()



As a prepratory step to switching to bio_submit, inline
ext4_writepage() into mpage_da_submit() and then simplify things a
bit.  This makes it clearer what mpage_da_submit needs to do.

Also, move the ClearPageChecked(page) call into
__ext4_journalled_writepage(), as a minor bit of cleanup refactoring.

This also allows us to pull i_size_read() and
ext4_should_journal_data() out of the loop, which should be a very
minor CPU savings.

Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent a42afc5f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment