libnvdimm/labels: Add isetcookie validation helper
authorDan Williams <dan.j.williams@intel.com>
Tue, 24 Aug 2021 16:05:35 +0000 (09:05 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 24 Aug 2021 19:08:28 +0000 (12:08 -0700)
commit9761b02d40de4b7f9f4947f801b69993817883ee
tree53e3196289601099fe47a1aad7d93e8b4c84281f
parentb4366a827f6cf6e58c93e076e335d9ee9ee0480f
libnvdimm/labels: Add isetcookie validation helper

In preparation to handle CXL labels with the same code that handles EFI
labels, add a specific interleave-set-cookie validation helper
rather than a getter since the CXL label type does not support this
concept. The answer for CXL labels will always be true.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/162982113550.1124374.206762177785773038.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/namespace_devs.c
drivers/nvdimm/nd.h