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

Hannes Reinecke
2025-02-24T07:44:09Z

On 2/21/25 23:38, Luis Chamberlain wrote:
> Convert mpage to folios and adjust accounting for the number of blocks
> within a folio instead of a single page. This also adjusts the number
> of pages we should process to be the size of the folio to ensure we
> always read a full folio.
>
> Note that the page cache code already ensures do_mpage_readpage() will
> work with folios respecting the address space min order, this ensures
> that so long as folio_size() is used for our requirements mpage will
> also now be able to process block sizes larger than the page size.
>
> Originally-by: Hannes Reinecke <hare@suse.de>
> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
> ---by: H
> fs/mpage.c | 42 +++++++++++++++++++++---------------------
> 1 file changed, 21 insertions(+), 21 deletions(-)
>
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich