diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-10-05 15:54:46 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-10-07 09:22:53 -0700 |
commit | c969e24c1b696f347c08b4beb73007bc39865b0e (patch) | |
tree | 2cf5a7f92ab399461fc10df4e721ca7d7780e466 /drivers/nvdimm/nd-core.h | |
parent | 762d067dbad5f32560cb1657b7ca20034332dc56 (diff) | |
download | linux-c969e24c1b696f347c08b4beb73007bc39865b0e.tar.bz2 |
libnvdimm, namespace: filter out of range labels in scan_labels()
Short-circuit doomed-to-fail label validation attempts by skipping
labels that are outside the given region. For example a DIMM that has
multiple PMEM regions will waste time attempting to create namespaces
only to find that the interleave-set-cookie does not validate, e.g.:
nd_region region6: invalid cookie in label: 73e608dc-47b9-4b2a-b5c7-2d55a32e0c2
Similar to how we skip BLK labels when performing PMEM validation we can
skip out-of-range labels early.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/nd-core.h')
0 files changed, 0 insertions, 0 deletions