]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit91e8d971756d678a1bc8a549d126e2a2cda7f987
treea9f31cf205aaa4b57ea01c7ad88154091c49e91f
parent842ae0a822126849d89a2e3b58710f60d67b47cb
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