erofs: enable large folios for iomap mode
authorJingbo Xu <jefflexu@linux.alibaba.com>
Wed, 30 Nov 2022 06:04:55 +0000 (14:04 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Wed, 7 Dec 2022 02:52:06 +0000 (10:52 +0800)
commitce529cc25b184e93397b94a8a322128fc0095cbb
treec0498a6468b826f373de79a5b4fc3813ec30ff5d
parenteb7081409f94a9a8608593d0fb63a1aa3d6f95d8
erofs: enable large folios for iomap mode

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@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20221130060455.44532-1-jefflexu@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/data.c
fs/erofs/inode.c