Re: [PATCH v5 1/7] fsdax: Introduce dax_iomap_cow_copy()

2021-05-13 Thread Darrick J. Wong
On Thu, May 13, 2021 at 07:57:47AM +, ruansy.f...@fujitsu.com wrote: > > -Original Message- > > From: Darrick J. Wong > > Subject: Re: [PATCH v5 1/7] fsdax: Introduce dax_iomap_cow_copy() > > > > On Tue, May 11, 2021 at 11:09:27AM +0800, Shiyang Ruan

RE: [PATCH v5 1/7] fsdax: Introduce dax_iomap_cow_copy()

2021-05-13 Thread ruansy.f...@fujitsu.com
> -Original Message- > From: Darrick J. Wong > Subject: Re: [PATCH v5 1/7] fsdax: Introduce dax_iomap_cow_copy() > > On Tue, May 11, 2021 at 11:09:27AM +0800, Shiyang Ruan wrote: > > In the case where the iomap is a write operation and iomap is not > > equal

Re: [PATCH v5 1/7] fsdax: Introduce dax_iomap_cow_copy()

2021-05-11 Thread Darrick J. Wong
On Tue, May 11, 2021 at 11:09:27AM +0800, Shiyang Ruan wrote: > In the case where the iomap is a write operation and iomap is not equal > to srcmap after iomap_begin, we consider it is a CoW operation. > > The destance extent which iomap indicated is new allocated extent. > So, it is needed to cop

[PATCH v5 1/7] fsdax: Introduce dax_iomap_cow_copy()

2021-05-10 Thread Shiyang Ruan
In the case where the iomap is a write operation and iomap is not equal to srcmap after iomap_begin, we consider it is a CoW operation. The destance extent which iomap indicated is new allocated extent. So, it is needed to copy the data from srcmap to new allocated extent. In theory, it is better