Re: [PATCH] mm/filemap: allocate folios according to the blocksize

From: Matthew Wilcox
Date: Fri Apr 14 2023 - 09:56:39 EST


On Fri, Apr 14, 2023 at 03:49:08PM +0200, Hannes Reinecke wrote:
> If the blocksize is larger than the pagesize allocate folios
> with the correct order.

I think you also need to get the one in page_cache_ra_unbounded()
and page_cache_ra_order() also needs some love?

It might help to put an assertion in __filemap_add_folio() to be sure
we're not doing something unacceptable.