]> git.baikalelectronics.ru Git - kernel.git/commit
fsdax: simplify the offset check in dax_iomap_zero
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 10:21:50 +0000 (11:21 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 4 Dec 2021 16:58:52 +0000 (08:58 -0800)
commitfcc3c6e026c046aee5c98c8b4704615a51a43da9
tree819e3197465e02a03317d6cb240e2ca448fcc678
parentea4afa2d5fdf0ada7d768769510d89106a478e45
fsdax: simplify the offset check in dax_iomap_zero

The file relative offset must have the same alignment as the storage
offset, so use that and get rid of the call to iomap_sector.

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-17-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/dax.c