dm-stripe: add a stripe_dax_pgoff helper
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 10:21:45 +0000 (11:21 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 4 Dec 2021 16:58:52 +0000 (08:58 -0800)
commit2a68553e8aeb3e88cb0b1042233613a3d08a700a
tree90c8d86b4e1def39ee48c05cc78234bb4b3e2d52
parentd19bd6756e7c400e264dba853eb35c94462f4ec4
dm-stripe: add a stripe_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-12-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/md/dm-stripe.c