libnvdimm: convert to statically allocated badblocks
Orabug:
22913653
If a device will ever have badblocks it should always have a badblocks
instance available. So, similar to md, embed a badblocks instance in
pmem_device. This reduces pointer chasing in the i/o fast path, and
simplifies the init path.
Reported-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit
b95f5f4391fad65f1819c2404080b05ca95bdd92)
Signed-off-by: Dan Duval <dan.duval@oracle.com>