]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit27dbf86672c835eac8c70393083b6af0874d3c94
treea4eb51920fe7760c53383aec2a7b3f22d6cb8071
parentc05576b4a9f1e32dd1e5a756c5f7d967dd8bffbd
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