Re: [PATCH v2 4/8] fs/mpage: use blocks_per_folio instead of blocks_per_page

Matthew Wilcox
2025-02-21T20:25:19Z

On Fri, Feb 21, 2025 at 10:58:58AM -0800, Luis Chamberlain wrote:
> @@ -385,7 +388,7 @@ int mpage_read_folio(struct folio *folio, get_block_t get_block)
> {
> struct mpage_readpage_args args = {
> .folio = folio,
> - .nr_pages = 1,
> + .nr_pages = mapping_min_folio_nrpages(folio->mapping),

.nr_pages = folio_nr_pages(folio);

since the folio is not necessarily the minimum size.

> .get_block = get_block,
> };
>