On Thu, 26 Jan 2023 20:12:55 +0000 "Matthew Wilcox (Oracle)" <willy@xxxxxxxxxxxxx> wrote: > This is just a conversion to the folio API. While there are some nods > towards supporting multi-page folios in here, the blocks array is > still sized for one page's worth of blocks, and there are other > assumptions such as the blocks_per_page variable. > > ... > > @@ -588,7 +585,7 @@ static int __mpage_writepage(struct folio *folio, struct writeback_control *wbc, > if (bio == NULL) { > if (first_unmapped == blocks_per_page) { > if (!bdev_write_page(bdev, blocks[0] << (blkbits - 9), > - page, wbc)) > + &folio->page, wbc)) > goto out; > } > bio = bio_alloc(bdev, BIO_MAX_VECS, > hch removed this code in https://lkml.kernel.org/r/20230125133436.447864-2-hch@xxxxxx, so I'll drop this hunk.