summaryrefslogtreecommitdiffstats
path: root/lib/proportions.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2016-03-03 09:14:36 -0800
committerDan Williams <dan.j.williams@intel.com>2016-03-05 12:25:44 -0800
commitd9cbe09d39aa13f6924dc5fb88325de7ef01a72e (patch)
tree8d2e60e548272353fbfa8bd9ac705cdfac918efc /lib/proportions.c
parentbc94b99636dc7bcccce439a9fb9c00065e2e2627 (diff)
downloadlinux-d9cbe09d39aa13f6924dc5fb88325de7ef01a72e.tar.bz2
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 'lib/proportions.c')
0 files changed, 0 insertions, 0 deletions