]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0cb7d54ba599462c4ee344b8a72b74202716d2d4
tree12b27caa8604c6043d84356af401d9b88d433b25
parenta182b3a991d2e054efdd358a29eb58920b0cb9d1
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