diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-09-19 16:38:50 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-09-30 19:13:42 -0700 |
commit | 44c462eb9e19dfa089b454271dd2dff5eaf1ad6d (patch) | |
tree | 4973b6ac54b002b340e1c5a863a982048b2f7c1f /drivers/nvdimm/nd.h | |
parent | e046114af5fcafe8d6d3f0b6ccb99804bad34bfb (diff) | |
download | linux-44c462eb9e19dfa089b454271dd2dff5eaf1ad6d.tar.gz linux-44c462eb9e19dfa089b454271dd2dff5eaf1ad6d.tar.bz2 linux-44c462eb9e19dfa089b454271dd2dff5eaf1ad6d.zip |
libnvdimm, region: move region-mapping input-paramters to nd_mapping_desc
Before we add more libnvdimm-private fields to nd_mapping make it clear
which parameters are input vs libnvdimm internals. Use struct
nd_mapping_desc instead of struct nd_mapping in nd_region_desc and make
struct nd_mapping private to libnvdimm.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/nd.h')
-rw-r--r-- | drivers/nvdimm/nd.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/nvdimm/nd.h b/drivers/nvdimm/nd.h index 38d6f039234e..e58c40824e1f 100644 --- a/drivers/nvdimm/nd.h +++ b/drivers/nvdimm/nd.h @@ -98,6 +98,20 @@ struct nd_percpu_lane { spinlock_t lock; }; +struct nd_mapping { + struct nvdimm *nvdimm; + struct nd_namespace_label **labels; + u64 start; + u64 size; + /* + * @ndd is for private use at region enable / disable time for + * get_ndd() + put_ndd(), all other nd_mapping to ndd + * conversions use to_ndd() which respects enabled state of the + * nvdimm. + */ + struct nvdimm_drvdata *ndd; +}; + struct nd_region { struct device dev; struct ida ns_ida; |