diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-04-11 18:49:49 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-04-13 06:59:14 +0200 |
commit | 7b6be8444e0f0dd675b54d059793423d3c9b4c03 (patch) | |
tree | b2782a46dda7b03fac23216f873b1a6bf1df58cb /drivers/dax/Makefile | |
parent | device-dax: rename 'dax_dev' to 'dev_dax' (diff) | |
download | linux-7b6be8444e0f0dd675b54d059793423d3c9b4c03.tar.xz linux-7b6be8444e0f0dd675b54d059793423d3c9b4c03.zip |
dax: refactor dax-fs into a generic provider of 'struct dax_device' instances
We want dax capable drivers to be able to publish a set of dax
operations [1]. However, we do not want to further abuse block_devices
to advertise these operations. Instead we will attach these operations
to a dax device and add a lookup mechanism to go from block device path
to a dax device. A dax capable driver like pmem or brd is responsible
for registering a dax device, alongside a block device, and then a dax
capable filesystem is responsible for retrieving the dax device by path
name if it wants to call dax_operations.
For now, we refactor the dax pseudo-fs to be a generic facility, rather
than an implementation detail, of the device-dax use case. Where a "dax
device" is just an inode + dax infrastructure, and "Device DAX" is a
mapping service layered on top of that base 'struct dax_device'.
"Filesystem DAX" is then a mapping service that layers a filesystem on
top of that same base device. Filesystem DAX is associated with a
block_device for now, but perhaps directly to a dax device in the
future, or for new pmem-only filesystems.
[1]: https://lkml.org/lkml/2017/1/19/880
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dax/Makefile')
-rw-r--r-- | drivers/dax/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/dax/Makefile b/drivers/dax/Makefile index 27c54e38478a..dc7422530462 100644 --- a/drivers/dax/Makefile +++ b/drivers/dax/Makefile @@ -1,4 +1,7 @@ -obj-$(CONFIG_DEV_DAX) += dax.o +obj-$(CONFIG_DAX) += dax.o +obj-$(CONFIG_DEV_DAX) += device_dax.o obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o +dax-y := super.o dax_pmem-y := pmem.o +device_dax-y := device.o |