Thread (11 messages) 11 messages, 3 authors, 2025-02-24

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

From: Hannes Reinecke <hare@suse.de>
Date: 2025-02-24 07:44:09
Also in: linux-fsdevel, linux-mm, linux-xfs

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 [off-list ref]
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help