Skip to content

Commit 072d732

Browse files
Matthew Wilcox (Oracle)Andreas Gruenbacher
authored andcommitted
gfs2: Use b_folio in gfs2_submit_bhs()
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>
1 parent 3f2fc84 commit 072d732

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/gfs2/meta_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ static void gfs2_submit_bhs(blk_opf_t opf, struct buffer_head *bhs[], int num)
232232
bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9);
233233
while (num > 0) {
234234
bh = *bhs;
235-
if (!bio_add_page(bio, bh->b_page, bh->b_size, bh_offset(bh))) {
235+
if (!bio_add_folio(bio, bh->b_folio, bh->b_size, bh_offset(bh))) {
236236
BUG_ON(bio->bi_iter.bi_size == 0);
237237
break;
238238
}

0 commit comments

Comments
 (0)