]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit389f60ddca91b67535fd47f9e990d1e07af15719
treebdf5d661ca6cce82ab6acd4ad6c1258888d82883
parent2411781449ac81e42c5cad395b8cd92e1f6f17ff
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