Re: [PATCH v10 7/8] xfs: support CoW in fsdax mode

2021-10-17 Thread Christoph Hellwig
On Thu, Oct 14, 2021 at 10:50:00AM -0700, Dan Williams wrote: > The other blocker was enabling mounting dax filesystems on a > dax-device rather than a block device. I'm actively refactoring the > nvdimm subsystem side of that equation, but could use help with the > conversion of the xfs mount

Re: [PATCH v10 7/8] xfs: support CoW in fsdax mode

2021-10-14 Thread Dan Williams
On Thu, Oct 14, 2021 at 10:38 AM Darrick J. Wong wrote: > > On Tue, Sep 28, 2021 at 02:23:10PM +0800, Shiyang Ruan wrote: > > In fsdax mode, WRITE and ZERO on a shared extent need CoW performed. > > After that, new allocated extents needs to be remapped to the file. > > So, add a CoW

Re: [PATCH v10 7/8] xfs: support CoW in fsdax mode

2021-10-14 Thread Darrick J. Wong
On Tue, Sep 28, 2021 at 02:23:10PM +0800, Shiyang Ruan wrote: > In fsdax mode, WRITE and ZERO on a shared extent need CoW performed. > After that, new allocated extents needs to be remapped to the file. > So, add a CoW identification in ->iomap_begin(), and implement > ->iomap_end() to do the

[PATCH v10 7/8] xfs: support CoW in fsdax mode

2021-09-28 Thread Shiyang Ruan
In fsdax mode, WRITE and ZERO on a shared extent need CoW performed. After that, new allocated extents needs to be remapped to the file. So, add a CoW identification in ->iomap_begin(), and implement ->iomap_end() to do the remapping work. Signed-off-by: Shiyang Ruan --- fs/xfs/xfs_bmap_util.c