dm: use fs_dax_get_by_bdev instead of dax_get_by_host
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Aug 2021 13:55:04 +0000 (15:55 +0200)
committerDan Williams <dan.j.williams@intel.com>
Thu, 26 Aug 2021 23:52:03 +0000 (16:52 -0700)
commitdfa584f6f91586dbf7bb9f35f8bbdc06590cde1f
treea4eb51920fe7760c53383aec2a7b3f22d6cb8071
parent39b6389a7fdc0457d980a3ea1e77ca457402f477
dm: use fs_dax_get_by_bdev instead of dax_get_by_host

There is no point in trying to finding the dax device if the DAX flag is
not set on the queue as none of the users of the device mapper exported
block devices could make use of the DAX capability.

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