summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-core.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2017-04-12 12:35:44 -0700
committerDan Williams <dan.j.williams@intel.com>2017-04-20 11:57:52 -0700
commitf26c5719b2d7b00de69eb83eb1c1c831759fdc9b (patch)
treed2f4dc917d539e7dae0424d7722affdc1cdd2006 /drivers/md/dm-core.h
parentb0686260fecaa924d8eff2ace94bee70506bc308 (diff)
downloadlinux-stable-f26c5719b2d7b00de69eb83eb1c1c831759fdc9b.tar.gz
linux-stable-f26c5719b2d7b00de69eb83eb1c1c831759fdc9b.tar.bz2
linux-stable-f26c5719b2d7b00de69eb83eb1c1c831759fdc9b.zip
dm: add dax_device and dax_operations support
Allocate a dax_device to represent the capacity of a device-mapper instance. Provide a ->direct_access() method via the new dax_operations indirection that mirrors the functionality of the current direct_access support via block_device_operations. Once fs/dax.c has been converted to use dax_operations the old dm_blk_direct_access() will be removed. A new helper dm_dax_get_live_target() is introduced to separate some of the dm-specifics from the direct_access implementation. This enabling is only for the top-level dm representation to upper layers. Converting target direct_access implementations is deferred to a separate patch. Cc: Toshi Kani <toshi.kani@hpe.com> Reviewed-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/md/dm-core.h')
-rw-r--r--drivers/md/dm-core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-core.h b/drivers/md/dm-core.h
index 136fda3ff9e5..538630190f66 100644
--- a/drivers/md/dm-core.h
+++ b/drivers/md/dm-core.h
@@ -58,6 +58,7 @@ struct mapped_device {
struct target_type *immutable_target_type;
struct gendisk *disk;
+ struct dax_device *dax_dev;
char name[16];
void *interface_ptr;