]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
gfs2: Use b_folio in gfs2_log_write_bh()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 10 Feb 2025 13:34:39 +0000 (13:34 +0000)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 10 Mar 2025 17:15:39 +0000 (18:15 +0100)
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>
fs/gfs2/lops.c

index 314ec2a70167f2622c1542242db3558e8df5c2de..d27f34688ff5b5ae6dbb0db4e64407eefc2ff675 100644 (file)
@@ -359,8 +359,8 @@ static void gfs2_log_write_bh(struct gfs2_sbd *sdp, struct buffer_head *bh)
 
        dblock = gfs2_log_bmap(sdp->sd_jdesc, sdp->sd_log_flush_head);
        gfs2_log_incr_head(sdp);
-       gfs2_log_write(sdp, sdp->sd_jdesc, bh->b_page, bh->b_size,
-                      bh_offset(bh), dblock);
+       gfs2_log_write(sdp, sdp->sd_jdesc, folio_page(bh->b_folio, 0),
+                       bh->b_size, bh_offset(bh), dblock);
 }
 
 /**