summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2017-08-04 17:20:16 -0700
committerDan Williams <dan.j.williams@intel.com>2017-08-04 17:20:16 -0700
commit401c0a19c6c22efcaff85d5a64a396f9130da2ca (patch)
tree051deacfc826795636237e63d1c1741e5c32bdb1 /include
parent0dd69643061d78f3f9047c2382d8d77cca1ac943 (diff)
downloadop-kernel-dev-401c0a19c6c22efcaff85d5a64a396f9130da2ca.zip
op-kernel-dev-401c0a19c6c22efcaff85d5a64a396f9130da2ca.tar.gz
nfit, libnvdimm, region: export 'position' in mapping info
It is useful to be able to know the position of a DIMM in an interleave-set. Consider the case where the order of the DIMMs changes causing a namespace to be invalidated because the interleave-set cookie no longer matches. If the before and after state of each DIMM position is known this state debugged by the system owner. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/libnvdimm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/libnvdimm.h b/include/linux/libnvdimm.h
index f3d3e6a..9b8d81a 100644
--- a/include/linux/libnvdimm.h
+++ b/include/linux/libnvdimm.h
@@ -87,6 +87,7 @@ struct nd_mapping_desc {
struct nvdimm *nvdimm;
u64 start;
u64 size;
+ int position;
};
struct nd_region_desc {
OpenPOWER on IntegriCloud