[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d57c4609-a4c3-5e60-8257-a0704aaa30a5@linux.alibaba.com>
Date: Mon, 3 Jan 2022 14:32:05 +0800
From: JeffleXu <jefflexu@...ux.alibaba.com>
To: dhowells@...hat.com, linux-cachefs@...hat.com, xiang@...nel.org,
chao@...nel.org, linux-erofs@...ts.ozlabs.org
Cc: linux-fsdevel@...r.kernel.org, joseph.qi@...ux.alibaba.com,
bo.liu@...ux.alibaba.com, tao.peng@...ux.alibaba.com,
gerry@...ux.alibaba.com, eguan@...ux.alibaba.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1 13/23] erofs: implement fscache-based data read
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
Powered by blists - more mailing lists