dm-linear: add a linear_dax_pgoff helper
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 10:21:43 +0000 (11:21 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 4 Dec 2021 16:58:51 +0000 (08:58 -0800)
commitf43e0065c264b2cb001952be17c9291c68d07182
tree5cb00e6dcb7b87d554fce6c679de2695f73fc86d
parent7b0800d00dae8c897398abaf61e82db0d67d7afc
dm-linear: add a linear_dax_pgoff helper

Add a helper to perform the entire remapping for DAX accesses.  This
helper open codes bdev_dax_pgoff given that the alignment checks have
already been done by the submitting file system and don't need to be
repeated.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Link: https://lore.kernel.org/r/20211129102203.2243509-10-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/md/dm-linear.c