Re: [PATCH v9 8/8] xfs: Add dax dedupe support

2021-09-15 Thread Darrick J. Wong
On Thu, Sep 16, 2021 at 12:01:18PM +0800, Shiyang Ruan wrote: > > > On 2021/9/16 8:30, Darrick J. Wong wrote: > > On Wed, Sep 15, 2021 at 06:45:01PM +0800, Shiyang Ruan wrote: > > > Introduce xfs_mmaplock_two_inodes_and_break_dax_layout() for dax files > > > who are going to be deduped. After th

Re: [PATCH v9 8/8] xfs: Add dax dedupe support

2021-09-15 Thread Shiyang Ruan
On 2021/9/16 8:30, Darrick J. Wong wrote: On Wed, Sep 15, 2021 at 06:45:01PM +0800, Shiyang Ruan wrote: Introduce xfs_mmaplock_two_inodes_and_break_dax_layout() for dax files who are going to be deduped. After that, call compare range function only when files are both DAX or not. Signed-off

Re: [PATCH v9 8/8] xfs: Add dax dedupe support

2021-09-15 Thread Darrick J. Wong
On Wed, Sep 15, 2021 at 06:45:01PM +0800, Shiyang Ruan wrote: > Introduce xfs_mmaplock_two_inodes_and_break_dax_layout() for dax files > who are going to be deduped. After that, call compare range function > only when files are both DAX or not. > > Signed-off-by: Shiyang Ruan > Reviewed-by: Darr

[PATCH v9 8/8] xfs: Add dax dedupe support

2021-09-15 Thread Shiyang Ruan
Introduce xfs_mmaplock_two_inodes_and_break_dax_layout() for dax files who are going to be deduped. After that, call compare range function only when files are both DAX or not. Signed-off-by: Shiyang Ruan Reviewed-by: Darrick J. Wong Reviewed-by: Christoph Hellwig --- fs/xfs/xfs_file.c|