diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-04-19 15:14:31 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-04-19 15:14:31 -0700 |
commit | 72058005411ffddcae6c06f7b691d635489132af (patch) | |
tree | a92ff7c7c6c968e2c7fc17a0b0e85b5fc3514af5 /include/linux/dax.h | |
parent | 7b6be8444e0f0dd675b54d059793423d3c9b4c03 (diff) | |
download | lwn-72058005411ffddcae6c06f7b691d635489132af.tar.gz lwn-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 'include/linux/dax.h')
-rw-r--r-- | include/linux/dax.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/dax.h b/include/linux/dax.h index 5b62f5d19aea..9b2d5ba10d7d 100644 --- a/include/linux/dax.h +++ b/include/linux/dax.h @@ -10,6 +10,7 @@ struct iomap_ops; int dax_read_lock(void); void dax_read_unlock(int id); +struct dax_device *dax_get_by_host(const char *host); /* * We use lowest available bit in exceptional entry for locking, one bit for |