aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm/namespace_devs.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 /drivers/nvdimm/namespace_devs.c
parentMerge tag 'v4.5-rc6' into core/resources, to resolve conflict (diff)
downloadlinux-dev-d9cbe09d39aa13f6924dc5fb88325de7ef01a72e.tar.xz
linux-dev-d9cbe09d39aa13f6924dc5fb88325de7ef01a72e.zip
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 'drivers/nvdimm/namespace_devs.c')
0 files changed, 0 insertions, 0 deletions