Re: [PATCH 6.1 1/1] erofs: enable large folios for iomap mode
From: Gao Xiang
Date: Mon Mar 23 2026 - 03:55:39 EST
Hi Denis,
On 2026/3/23 15:48, Denis Arefev wrote:
From: Jingbo Xu <jefflexu@xxxxxxxxxxxxxxxxx>
commit ce529cc25b184e93397b94a8a322128fc0095cbb upstream.
Enable large folios for iomap mode. Then the readahead routine will
pass down large folios containing multiple pages.
Let's enable this for non-compressed format for now, until the
compression part supports large folios later.
When large folios supported, the iomap routine will allocate iomap_page
for each large folio and thus we need iomap_release_folio() and
iomap_invalidate_folio() to free iomap_page when these folios get
reclaimed or invalidated.
Signed-off-by: Jingbo Xu <jefflexu@xxxxxxxxxxxxxxxxx>
Reviewed-by: Gao Xiang <hsiangkao@xxxxxxxxxxxxxxxxx>
Reviewed-by: Chao Yu <chao@xxxxxxxxxx>
Link: https://lore.kernel.org/r/20221130060455.44532-1-jefflexu@xxxxxxxxxxxxxxxxx
Signed-off-by: Gao Xiang <hsiangkao@xxxxxxxxxxxxxxxxx>
Signed-off-by: Denis Arefev <arefev@xxxxxxxxx>
I think we have no plan to enable large folios for
Linux 6.1 kernels, if the following part is what you
need, how about just backporting the following snippet
with the updated commit message for some explanation:
+ .release_folio = iomap_release_folio,
+ .invalidate_folio = iomap_invalidate_folio,
Thanks,
Gao Xiang