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
- [Linux-cachefs] [PATCH v1 09/23] erofs: add cookie conte... Jeffle Xu
- [Linux-cachefs] [PATCH v1 18/23] cachefiles: use idr tre... Jeffle Xu
- [Linux-cachefs] [PATCH v1 21/23] cachefiles: implement .... Jeffle Xu
- [Linux-cachefs] [PATCH v1 17/23] netfs: support on deman... Jeffle Xu
- [Linux-cachefs] [PATCH v1 06/23] erofs: export erofs_map... Jeffle Xu
- [Linux-cachefs] [PATCH v1 02/23] cachefiles: add mode co... Jeffle Xu
- [Linux-cachefs] [PATCH v1 01/23] cachefiles: add cachefi... Jeffle Xu
- [Linux-cachefs] [PATCH v1 13/23] erofs: implement fscach... Jeffle Xu
- Re: [Linux-cachefs] [PATCH v1 13/23] erofs: impleme... JeffleXu
- Re: [Linux-cachefs] [PATCH v1 13/23] erofs: impleme... Gao Xiang
- [Linux-cachefs] [PATCH v1 16/23] erofs: add 'uuid' mount... Jeffle Xu
- [Linux-cachefs] [PATCH v1 22/23] cachefiles: add done co... Jeffle Xu
- [Linux-cachefs] [PATCH v1 14/23] erofs: register cookie ... Jeffle Xu
- [Linux-cachefs] [PATCH v1 19/23] cachefiles: implement .... Jeffle Xu
- Re: [Linux-cachefs] [PATCH v1 19/23] cachefiles: im... kernel test robot
- Re: [Linux-cachefs] [PATCH v1 19/23] cachefiles: im... Matthew Wilcox