dax: remove dax_capable
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 10:21:42 +0000 (11:21 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 4 Dec 2021 16:58:51 +0000 (08:58 -0800)
commit7b0800d00dae8c897398abaf61e82db0d67d7afc
tree1d24e8995f2a54b0037b9c911c0bc9293ea6f102
parent679a99495b8fda800037b25af8cd990eb7dd72c9
dax: remove dax_capable

Just open code the block size and dax_dev == NULL checks in the callers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> [erofs]
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-9-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/super.c
drivers/md/dm-table.c
drivers/md/dm.c
drivers/md/dm.h
drivers/nvdimm/pmem.c
drivers/s390/block/dcssblk.c
fs/erofs/super.c
fs/ext2/super.c
fs/ext4/super.c
fs/xfs/xfs_super.c
include/linux/dax.h