summaryrefslogtreecommitdiffstats
path: root/drivers/dax/device.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2017-04-20 00:14:31 +0200
committerDan Williams <dan.j.williams@intel.com>2017-04-20 00:14:31 +0200
commit72058005411ffddcae6c06f7b691d635489132af (patch)
treea92ff7c7c6c968e2c7fc17a0b0e85b5fc3514af5 /drivers/dax/device.c
parentdax: refactor dax-fs into a generic provider of 'struct dax_device' instances (diff)
downloadlinux-72058005411ffddcae6c06f7b691d635489132af.tar.xz
linux-72058005411ffddcae6c06f7b691d635489132af.zip
dax: add a facility to lookup a dax device by 'host' device name
For the current block_device based filesystem-dax path, we need a way for it to lookup the dax_device associated with a block_device. Add a 'host' property of a dax_device that can be used for this purpose. It is a free form string, but for a dax_device associated with a block device it is the bdev name. This is a stop-gap until filesystems are able to mount on a dax-inode directly. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dax/device.c')
-rw-r--r--drivers/dax/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dax/device.c b/drivers/dax/device.c
index 19a42edbfa03..db68f4fa8ce0 100644
--- a/drivers/dax/device.c
+++ b/drivers/dax/device.c
@@ -645,7 +645,7 @@ struct dev_dax *devm_create_dev_dax(struct dax_region *dax_region,
goto err_id;
}
- dax_dev = alloc_dax(dev_dax);
+ dax_dev = alloc_dax(dev_dax, NULL);
if (!dax_dev)
goto err_dax;