]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
gfs2: Use b_folio in gfs2_submit_bhs()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 10 Feb 2025 13:34:41 +0000 (13:34 +0000)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 10 Mar 2025 17:15:39 +0000 (18:15 +0100)
Remove a reference to bh->b_page which is going to be removed soon.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/meta_io.c

index fea3efcc2f930948df0c9a62873656791383754e..66db506a5f7fd59d076c1b1be33a36f4050342bc 100644 (file)
@@ -232,7 +232,7 @@ static void gfs2_submit_bhs(blk_opf_t opf, struct buffer_head *bhs[], int num)
                bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9);
                while (num > 0) {
                        bh = *bhs;
-                       if (!bio_add_page(bio, bh->b_page, bh->b_size, bh_offset(bh))) {
+                       if (!bio_add_folio(bio, bh->b_folio, bh->b_size, bh_offset(bh))) {
                                BUG_ON(bio->bi_iter.bi_size == 0);
                                break;
                        }