Skip to content

Commit 6576742

Browse files
Matthew Wilcox (Oracle)Andreas Gruenbacher
authored andcommitted
gfs2: Use b_folio in gfs2_log_write_bh()
We are preparing to remove bh->b_page. gfs2_log_write() should continue to operate on pages as some of the memory being logged does not come from folios, so convert from folio to page in this function. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
1 parent 41a8e04 commit 6576742

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/gfs2/lops.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ static void gfs2_log_write_bh(struct gfs2_sbd *sdp, struct buffer_head *bh)
359359

360360
dblock = gfs2_log_bmap(sdp->sd_jdesc, sdp->sd_log_flush_head);
361361
gfs2_log_incr_head(sdp);
362-
gfs2_log_write(sdp, sdp->sd_jdesc, bh->b_page, bh->b_size,
363-
bh_offset(bh), dblock);
362+
gfs2_log_write(sdp, sdp->sd_jdesc, folio_page(bh->b_folio, 0),
363+
bh->b_size, bh_offset(bh), dblock);
364364
}
365365

366366
/**

0 commit comments

Comments
 (0)