File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -1566,19 +1566,19 @@ static void z_erofs_submissionqueue_endio(struct bio *bio)
1566
1566
{
1567
1567
struct z_erofs_decompressqueue * q = bio -> bi_private ;
1568
1568
blk_status_t err = bio -> bi_status ;
1569
- struct bio_vec * bvec ;
1570
- struct bvec_iter_all iter_all ;
1569
+ struct folio_iter fi ;
1571
1570
1572
- bio_for_each_segment_all ( bvec , bio , iter_all ) {
1573
- struct page * page = bvec -> bv_page ;
1571
+ bio_for_each_folio_all ( fi , bio ) {
1572
+ struct folio * folio = fi . folio ;
1574
1573
1575
- DBG_BUGON (PageUptodate (page ));
1576
- DBG_BUGON (z_erofs_page_is_invalidated (page ));
1577
- if (erofs_page_is_managed (EROFS_SB (q -> sb ), page )) {
1578
- if (!err )
1579
- SetPageUptodate (page );
1580
- unlock_page (page );
1581
- }
1574
+ DBG_BUGON (folio_test_uptodate (folio ));
1575
+ DBG_BUGON (z_erofs_page_is_invalidated (& folio -> page ));
1576
+ if (!erofs_page_is_managed (EROFS_SB (q -> sb ), & folio -> page ))
1577
+ continue ;
1578
+
1579
+ if (!err )
1580
+ folio_mark_uptodate (folio );
1581
+ folio_unlock (folio );
1582
1582
}
1583
1583
if (err )
1584
1584
q -> eio = true;
You can’t perform that action at this time.
0 commit comments