libnvdimm, label: convert label tracking to a linked list
authorDan Williams <dan.j.williams@intel.com>
Mon, 19 Sep 2016 23:04:21 +0000 (16:04 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 1 Oct 2016 02:13:42 +0000 (19:13 -0700)
commitae8219f186d8e98a3239afc6ea49bb46f2871d2f
tree8c32ce83b2e3b6d5b9a7565edd2ab305436131ef
parent44c462eb9e19dfa089b454271dd2dff5eaf1ad6d
libnvdimm, label: convert label tracking to a linked list

In preparation for enabling multiple namespaces per pmem region, convert
the label tracking to use a linked list.  In particular this will allow
select_pmem_id() to move labels from the unvalidated state to the
validated state.  Currently we only track one validated set per-region.

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