diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-10-05 01:09:59 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-10-07 18:22:53 +0200 |
commit | 762d067dbad5f32560cb1657b7ca20034332dc56 (patch) | |
tree | 2d8b4300b38d277dfff626a067d44b1c3cf832b0 /mm/userfaultfd.c | |
parent | libnvdimm, namespace: update label implementation for multi-pmem (diff) | |
download | linux-762d067dbad5f32560cb1657b7ca20034332dc56.tar.xz linux-762d067dbad5f32560cb1657b7ca20034332dc56.zip |
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 'mm/userfaultfd.c')
0 files changed, 0 insertions, 0 deletions