libnvdimm: add mechanism to publish badblocks at the region level
authorDave Jiang <dave.jiang@intel.com>
Fri, 7 Apr 2017 22:33:20 +0000 (15:33 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 13 Apr 2017 04:56:42 +0000 (21:56 -0700)
commit6a6bef90425e8cba7c53919d923240559b7f247c
tree4ba907c618208b79cb19296353edd1c4011de773
parent3c87f372695592bf86e9dab7b1ec7d439fda577b
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>
drivers/nvdimm/nd.h
drivers/nvdimm/region.c
drivers/nvdimm/region_devs.c