[PATCH v1 13/23] erofs: implement fscache-based data read
JeffleXu
jefflexu at linux.alibaba.com
Mon Jan 3 17:32:05 AEDT 2022
On 12/27/21 8:54 PM, Jeffle Xu wrote:
>
> +static inline void do_copy_page(struct page *from, struct page *to,
> + size_t offset, size_t len)
> +{
> + char *vfrom, *vto;
> +
> + vfrom = kmap_atomic(from);
> + vto = kmap_atomic(to);
> + memcpy(vto, vfrom + offset, len);
> + kunmap_atomic(vto);
> + kunmap_atomic(vfrom);
> +}
> +
It seems that this private function can be replaced by memcpy_page().
Will be done in the next version.
--
Thanks,
Jeffle
More information about the Linux-erofs
mailing list