[PATCH v10 02/10] erofs: hold read context in iomap_iter if needed
Gao Xiang
hsiangkao at linux.alibaba.com
Tue Dec 23 13:32:46 AEDT 2025
On 2025/12/23 09:56, Hongbo Li wrote:
> Introduce `struct erofs_iomap_iter_ctx` to hold both `struct page *`
> and `void *base`, avoiding bogus use of `kmap_to_page()` in
> `erofs_iomap_end()`.
>
> With this change, fiemap and bmap no longer need to read inline data.
>
> Additionally, the upcoming page cache sharing mechanism requires
> passing the backing inode pointer to `erofs_iomap_{begin,end}()`, as
> I/O accesses must apply to backing inodes rather than anon inodes.
>
> Signed-off-by: Hongbo Li <lihongbo22 at huawei.com>
Reviewed-by: Gao Xiang <hsiangkao at linux.alibaba.com>
Thanks,
Gao Xiang
More information about the Linux-erofs
mailing list