On Thu, Mar 25, 2021 at 07:33:39PM +0530, Chandan Babu R wrote: > With dax enabled filesystems, a direct write operation into an existing > unwritten extent results in xfs_iomap_write_direct() zero-ing and converting > the extent into a normal extent before the actual data is copied from the > userspace buffer. > > The inode extent count can increase by 2 if the extent range being written to > maps to the middle of the existing unwritten extent range. Hence this commit > uses XFS_IEXT_WRITE_UNWRITTEN_CNT as the extent count delta when such a write > operation is being performed. Looks good, Reviewed-by: Christoph Hellwig <hch@xxxxxx>