Thread (30 messages) 30 messages, 3 authors, 2025-02-21

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

From: Luis Chamberlain <mcgrof@kernel.org>
Date: 2025-02-21 20:38:18
Also in: linux-fsdevel, linux-mm, linux-xfs

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:
quoted
@@ -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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help