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

Luis Chamberlain
2025-02-21T20:38:18Z

On Fri, Feb 21, 2025 at 08:25:11PM +0000, Matthew Wilcox wrote:
> 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.

Will roll this in for tests before a new v3.

Luis