diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-10-04 23:09:59 (GMT) |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-10-07 16:22:53 (GMT) |
commit | 762d067dbad5f32560cb1657b7ca20034332dc56 (patch) | |
tree | 2d8b4300b38d277dfff626a067d44b1c3cf832b0 /drivers/ras | |
parent | 16660eaea0ccc6d0692f173922cd365876eb288e (diff) | |
download | linux-762d067dbad5f32560cb1657b7ca20034332dc56.tar.xz |
libnvdimm, namespace: enable allocation of multiple pmem namespaces
Now that we have nd_region_available_dpa() able to handle the presence
of multiple PMEM allocations in aliased PMEM regions, reuse that same
infrastructure to track allocations from free space. In particular
handle allocating from an aliased PMEM region in the case where there
are dis-contiguous holes. The allocation for BLK and PMEM are
documented in the space_valid() helper:
BLK-space is valid as long as it does not precede a PMEM
allocation in a given region. PMEM-space must be contiguous
and adjacent to an existing existing allocation (if one
exists).
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/ras')
0 files changed, 0 insertions, 0 deletions