xfs: use xfs_direct_write_iomap_ops for DAX zeroing
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 10:21:56 +0000 (11:21 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 4 Dec 2021 16:58:53 +0000 (08:58 -0800)
commita50f6ab3fd31b084b851c5c196db6c900af2c7cc
treebdf5d661ca6cce82ab6acd4ad6c1258888d82883
parent5b5abbefec1bea98abba8f1cffcf72c11c32a92d
xfs: use xfs_direct_write_iomap_ops for DAX zeroing

While the buffered write iomap ops do work due to the fact that zeroing
never allocates blocks, the DAX zeroing should use the direct ops just
like actual DAX I/O.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20211129102203.2243509-23-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/xfs/xfs_iomap.c