summaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm/nd.h
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2017-04-07 15:33:20 -0700
committerDan Williams <dan.j.williams@intel.com>2017-04-12 21:56:42 -0700
commit6a6bef90425e8cba7c53919d923240559b7f247c (patch)
tree4ba907c618208b79cb19296353edd1c4011de773 /drivers/nvdimm/nd.h
parent3c87f372695592bf86e9dab7b1ec7d439fda577b (diff)
downloadop-kernel-dev-6a6bef90425e8cba7c53919d923240559b7f247c.zip
op-kernel-dev-6a6bef90425e8cba7c53919d923240559b7f247c.tar.gz
libnvdimm: add mechanism to publish badblocks at the region level
badblocks sysfs file will be export at region level. When nvdimm event notifier happens for NVDIMM_REVALIATE_POISON, the badblocks in the region will be updated. Signed-off-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/nd.h')
-rw-r--r--drivers/nvdimm/nd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvdimm/nd.h b/drivers/nvdimm/nd.h
index 2a99c83..c3b33cf 100644
--- a/drivers/nvdimm/nd.h
+++ b/drivers/nvdimm/nd.h
@@ -154,6 +154,7 @@ struct nd_region {
u64 ndr_start;
int id, num_lanes, ro, numa_node;
void *provider_data;
+ struct badblocks bb;
struct nd_interleave_set *nd_set;
struct nd_percpu_lane __percpu *lane;
struct nd_mapping mapping[0];
OpenPOWER on IntegriCloud