summaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm/nd.h
diff options
context:
space:
mode:
authorDave Jiang2017-04-08 00:33:20 +0200
committerDan Williams2017-04-13 06:56:42 +0200
commit6a6bef90425e8cba7c53919d923240559b7f247c (patch)
tree4ba907c618208b79cb19296353edd1c4011de773 /drivers/nvdimm/nd.h
parentacpi, nfit: fix acpi_get_table leak (diff)
downloadkernel-qcow2-linux-6a6bef90425e8cba7c53919d923240559b7f247c.tar.gz
kernel-qcow2-linux-6a6bef90425e8cba7c53919d923240559b7f247c.tar.xz
kernel-qcow2-linux-6a6bef90425e8cba7c53919d923240559b7f247c.zip
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];