We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ea0e45 commit f2b229aCopy full SHA for f2b229a
fs/ext4/readpage.c
@@ -68,18 +68,16 @@ struct bio_post_read_ctx {
68
69
static void __read_end_io(struct bio *bio)
70
{
71
- struct page *page;
72
- struct bio_vec *bv;
73
- struct bvec_iter_all iter_all;
+ struct folio_iter fi;
74
75
- bio_for_each_segment_all(bv, bio, iter_all) {
76
- page = bv->bv_page;
+ bio_for_each_folio_all(fi, bio) {
+ struct folio *folio = fi.folio;
77
78
if (bio->bi_status)
79
- ClearPageUptodate(page);
+ folio_clear_uptodate(folio);
80
else
81
- SetPageUptodate(page);
82
- unlock_page(page);
+ folio_mark_uptodate(folio);
+ folio_unlock(folio);
83
}
84
if (bio->bi_private)
85
mempool_free(bio->bi_private, bio_post_read_ctx_pool);
0 commit comments