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>
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user