diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-03-18 11:27:36 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-04-22 12:26:23 -0700 |
commit | 9d90725ddca347450c4ab177ad680ed76063afd4 (patch) | |
tree | 6658dda356e6868ab912534a6135397c3d4dedc0 /include/linux/nd.h | |
parent | 8378af17a4021f01b3bed20c1bd19c3921c1f5ac (diff) | |
download | op-kernel-dev-9d90725ddca347450c4ab177ad680ed76063afd4.zip op-kernel-dev-9d90725ddca347450c4ab177ad680ed76063afd4.tar.gz |
libnvdimm, blk: move i/o infrastructure to nd_namespace_blk
Consolidate the information for issuing i/o to a blk-namespace, and
eliminate some pointer chasing.
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/nd.h')
-rw-r--r-- | include/linux/nd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nd.h b/include/linux/nd.h index 5489ab7..5ea4aec 100644 --- a/include/linux/nd.h +++ b/include/linux/nd.h @@ -82,6 +82,7 @@ struct nd_namespace_pmem { * @uuid: namespace name supplied in the dimm label * @id: ida allocated id * @lbasize: blk namespaces have a native sector size when btt not present + * @size: sum of all the resource ranges allocated to this namespace * @num_resources: number of dpa extents to claim * @res: discontiguous dpa extents for given dimm */ @@ -91,6 +92,7 @@ struct nd_namespace_blk { u8 *uuid; int id; unsigned long lbasize; + resource_size_t size; int num_resources; struct resource **res; }; |