On Sat, Apr 20, 2024 at 03:49:57AM +0100, Matthew Wilcox (Oracle) wrote: > @@ -3812,8 +3814,7 @@ static int write_dev_supers(struct btrfs_device *device, > bio->bi_iter.bi_sector = bytenr >> SECTOR_SHIFT; > bio->bi_private = device; > bio->bi_end_io = btrfs_end_super_write; > - __bio_add_page(bio, page, BTRFS_SUPER_INFO_SIZE, > - offset_in_page(bytenr)); > + bio_add_folio_nofail(bio, folio, BTRFS_SUPER_INFO_SIZE, offset); Compilation fails when btrfs is built as a module, bio_add_folio_nofail() is not exported. I can keep __bio_add_page() and the conversion can be done later.