diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-03-03 09:14:36 -0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-03-05 12:25:44 -0800 |
commit | d9cbe09d39aa13f6924dc5fb88325de7ef01a72e (patch) | |
tree | 8d2e60e548272353fbfa8bd9ac705cdfac918efc /block/partitions | |
parent | bc94b99636dc7bcccce439a9fb9c00065e2e2627 (diff) |
libnvdimm, pmem: fix 'pfn' support for section-misaligned namespaces
The altmap for a section-misaligned namespace needs to arrange for the
base_pfn to be section-aligned. As a result the 'reserve' region (pfns
from base that do not have a struct page) must be increased. Otherwise
we trip the altmap validation check in __add_pages:
if (altmap->base_pfn != phys_start_pfn
|| vmem_altmap_offset(altmap) > nr_pages) {
pr_warn_once("memory add fail, invalid altmap\n");
return -EINVAL;
}
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'block/partitions')
0 files changed, 0 insertions, 0 deletions