• Theodore Ts'o's avatar
    ext4: inline ext4_writepage() into mpage_da_submit_io() · cb20d518
    Theodore Ts'o authored
    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>
    cb20d518
inode.c 175 KB