libnvdimm, namespace: unify blk and pmem label scanning
authorDan Williams <dan.j.williams@intel.com>
Thu, 22 Sep 2016 22:42:59 +0000 (15:42 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 6 Oct 2016 03:24:18 +0000 (20:24 -0700)
commit8a5f50d3b7f2f601c200f84827c2c9220cd69f71
treed1fdd4cd3751b9aecd644b9ee7d9648f8a3ad71a
parentf95b4bca9e7d29db284f9b175edf8deca1489def
libnvdimm, namespace: unify blk and pmem label scanning

In preparation for allowing multiple namespace per pmem region, unify
blk and pmem label scanning.  Given that blk regions already support
multiple namespaces, teaching that path how to do pmem namespace
scanning is an incremental step towards multiple pmem namespace support.
This should be functionally equivalent to the previous state in that
stops after finding the first valid pmem label set.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/namespace_devs.c