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

--
Linux-cachefs mailing list
Linux-cachefs@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-cachefs

Reply via email to