diff options
Diffstat (limited to 'drivers/dax/dax-private.h')
| -rw-r--r-- | drivers/dax/dax-private.h | 11 | 
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/dax/dax-private.h b/drivers/dax/dax-private.h index 1c974b7caae6..27cf2daaaa79 100644 --- a/drivers/dax/dax-private.h +++ b/drivers/dax/dax-private.h @@ -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; @@ -76,6 +78,13 @@ struct dev_dax {  	} *ranges;  }; +/* + * While run_dax() is potentially a generic operation that could be + * defined in include/linux/dax.h we don't want to grow any users + * outside of drivers/dax/ + */ +void run_dax(struct dax_device *dax_dev); +  static inline struct dev_dax *to_dev_dax(struct device *dev)  {  	return container_of(dev, struct dev_dax, dev);  |