dax: move the partition alignment check into fs_dax_get_by_bdev
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 10:21:40 +0000 (11:21 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 4 Dec 2021 16:58:51 +0000 (08:58 -0800)
commit0c445871388f4bac74ea74e8c7a12c6c05c6a427
tree12b27caa8604c6043d84356af401d9b88d433b25
parent586f61682816f0cf7865b2dab7210b8f5339f834
dax: move the partition alignment check into fs_dax_get_by_bdev

fs_dax_get_by_bdev is the primary interface to find a dax device for a
block device, so move the partition alignment check there instead of
wiring it up through ->dax_supported.

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