summaryrefslogtreecommitdiff
path: root/drivers/nvdimm/nd.h
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2017-04-08 01:33:20 +0300
committerDan Williams <dan.j.williams@intel.com>2017-04-13 07:56:42 +0300
commit6a6bef90425e8cba7c53919d923240559b7f247c (patch)
tree4ba907c618208b79cb19296353edd1c4011de773 /drivers/nvdimm/nd.h
parent3c87f372695592bf86e9dab7b1ec7d439fda577b (diff)
downloadlinux-6a6bef90425e8cba7c53919d923240559b7f247c.tar.xz
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 2a99c83aa19f..c3b33cf655fb 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];