[lvc-project] [PATCH 6.1 1/1] erofs: enable large folios for iomap mode
Gao Xiang
hsiangkao at linux.alibaba.com
Mon Mar 23 10:53:47 MSK 2026
Hi Denis,
On 2026/3/23 15:48, Denis Arefev wrote:
> From: Jingbo Xu <jefflexu at linux.alibaba.com>
>
> 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 at linux.alibaba.com>
> Reviewed-by: Gao Xiang <hsiangkao at linux.alibaba.com>
> Reviewed-by: Chao Yu <chao at kernel.org>
> Link: https://lore.kernel.org/r/20221130060455.44532-1-jefflexu@linux.alibaba.com
> Signed-off-by: Gao Xiang <hsiangkao at linux.alibaba.com>
> Signed-off-by: Denis Arefev <arefev at swemel.ru>
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
More information about the lvc-project
mailing list