@@ -3906,8 +3906,7 @@ int btree_write_cache_pages(struct address_space *mapping,
3906
3906
*/
3907
3907
static int extent_write_cache_pages (struct address_space * mapping ,
3908
3908
struct writeback_control * wbc ,
3909
- writepage_t writepage , void * data ,
3910
- void (* flush_fn )(void * ))
3909
+ writepage_t writepage , void * data )
3911
3910
{
3912
3911
struct inode * inode = mapping -> host ;
3913
3912
int ret = 0 ;
@@ -3971,7 +3970,7 @@ static int extent_write_cache_pages(struct address_space *mapping,
3971
3970
* mapping
3972
3971
*/
3973
3972
if (!trylock_page (page )) {
3974
- flush_fn (data );
3973
+ flush_write_bio (data );
3975
3974
lock_page (page );
3976
3975
}
3977
3976
@@ -3982,7 +3981,7 @@ static int extent_write_cache_pages(struct address_space *mapping,
3982
3981
3983
3982
if (wbc -> sync_mode != WB_SYNC_NONE ) {
3984
3983
if (PageWriteback (page ))
3985
- flush_fn (data );
3984
+ flush_write_bio (data );
3986
3985
wait_on_page_writeback (page );
3987
3986
}
3988
3987
@@ -4123,8 +4122,7 @@ int extent_writepages(struct extent_io_tree *tree,
4123
4122
.sync_io = wbc -> sync_mode == WB_SYNC_ALL ,
4124
4123
};
4125
4124
4126
- ret = extent_write_cache_pages (mapping , wbc , __extent_writepage , & epd ,
4127
- flush_write_bio );
4125
+ ret = extent_write_cache_pages (mapping , wbc , __extent_writepage , & epd );
4128
4126
flush_write_bio (& epd );
4129
4127
return ret ;
4130
4128
}
0 commit comments