@@ -1732,11 +1732,11 @@ iomap_can_add_to_ioend(struct iomap_writepage_ctx *wpc, loff_t offset,
1732
1732
* Test to see if we have an existing ioend structure that we could append to
1733
1733
* first; otherwise finish off the current ioend and start another.
1734
1734
*/
1735
- static void
1736
- iomap_add_to_ioend (struct inode * inode , loff_t pos , struct folio * folio ,
1737
- struct iomap_folio_state * ifs , struct iomap_writepage_ctx * wpc ,
1738
- struct writeback_control * wbc , struct list_head * iolist )
1735
+ static void iomap_add_to_ioend (struct iomap_writepage_ctx * wpc ,
1736
+ struct writeback_control * wbc , struct folio * folio ,
1737
+ struct inode * inode , loff_t pos , struct list_head * iolist )
1739
1738
{
1739
+ struct iomap_folio_state * ifs = folio -> private ;
1740
1740
sector_t sector = iomap_sector (& wpc -> iomap , pos );
1741
1741
unsigned len = i_blocksize (inode );
1742
1742
size_t poff = offset_in_folio (folio , pos );
@@ -1879,8 +1879,7 @@ static int iomap_writepage_map(struct iomap_writepage_ctx *wpc,
1879
1879
}
1880
1880
if (wpc -> iomap .type == IOMAP_HOLE )
1881
1881
continue ;
1882
- iomap_add_to_ioend (inode , pos , folio , ifs , wpc , wbc ,
1883
- & submit_list );
1882
+ iomap_add_to_ioend (wpc , wbc , folio , inode , pos , & submit_list );
1884
1883
count ++ ;
1885
1884
}
1886
1885
if (count )
0 commit comments