• Dan Williams's avatar
    libnvdimm, namespace: enable allocation of multiple pmem namespaces · 762d067d
    Dan Williams authored
    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: default avatarDan Williams <dan.j.williams@intel.com>
    762d067d
dimm_devs.c 17 KB