dax: introduce a fs_dax_get_by_bdev() helper
authorDan Williams <dan.j.williams@intel.com>
Wed, 30 Aug 2017 16:16:38 +0000 (09:16 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 30 Aug 2017 16:16:38 +0000 (09:16 -0700)
commit78f35473508118df5ea04b9515ac3f1aaec0a980
tree176dba5e8788be7cd4bb4d422e21b25fa190ec67
parent14ccee78fc82f5512908f4424f541549a5705b89
dax: introduce a fs_dax_get_by_bdev() helper

Add a helper that can replace the following common pattern:

if (blk_queue_dax(bdev->bd_queue))
fs_dax_get_by_host(bdev->bd_disk->disk_name);

This will be used to move dax_device lookup from iomap-operation time to
fs-mount time.

Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/super.c
include/linux/dax.h