dax: fix up some of the block device related ifdefs
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 10:22:01 +0000 (11:22 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 4 Dec 2021 16:58:54 +0000 (08:58 -0800)
commit2ede892342b3c628991ff1b9060108a7edd92d94
treea9f31cf205aaa4b57ea01c7ad88154091c49e91f
parentde2051147771017a61b62c02fd4e883c9b07712d
dax: fix up some of the block device related ifdefs

The DAX device <-> block device association is only enabled if
CONFIG_BLOCK is enabled.  Update dax.h to account for that and use
the right conditions for the fs_put_dax stub as well.

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-28-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
include/linux/dax.h