dax: Introduce alloc_dev_dax_id()
[linux-2.6-microblaze.git] / drivers / dax / dax-private.h
index db03268..27cf2da 100644 (file)
@@ -52,7 +52,8 @@ struct dax_mapping {
  * @region - parent region
  * @dax_dev - core dax functionality
  * @target_node: effective numa node if dev_dax memory range is onlined
- * @id: ida allocated id
+ * @dyn_id: is this a dynamic or statically created instance
+ * @id: ida allocated id when the dax_region is not static
  * @ida: mapping id allocator
  * @dev - device core
  * @pgmap - pgmap for memmap setup / lifetime (driver owned)
@@ -64,6 +65,7 @@ struct dev_dax {
        struct dax_device *dax_dev;
        unsigned int align;
        int target_node;
+       bool dyn_id;
        int id;
        struct ida ida;
        struct device dev;