summaryrefslogtreecommitdiff
path: root/drivers/dax/dax.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2017-04-20 01:14:31 +0300
committerDan Williams <dan.j.williams@intel.com>2017-04-20 01:14:31 +0300
commit72058005411ffddcae6c06f7b691d635489132af (patch)
treea92ff7c7c6c968e2c7fc17a0b0e85b5fc3514af5 /drivers/dax/dax.h
parent7b6be8444e0f0dd675b54d059793423d3c9b4c03 (diff)
downloadlinux-72058005411ffddcae6c06f7b691d635489132af.tar.xz
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/dax.h')
-rw-r--r--drivers/dax/dax.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dax/dax.h b/drivers/dax/dax.h
index 2472d9da96db..246a24d68d4c 100644
--- a/drivers/dax/dax.h
+++ b/drivers/dax/dax.h
@@ -13,7 +13,7 @@
#ifndef __DAX_H__
#define __DAX_H__
struct dax_device;
-struct dax_device *alloc_dax(void *private);
+struct dax_device *alloc_dax(void *private, const char *host);
void put_dax(struct dax_device *dax_dev);
bool dax_alive(struct dax_device *dax_dev);
void kill_dax(struct dax_device *dax_dev);