aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libnvdimm.h
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2017-06-27 19:56:33 +1000
committerDan Williams <dan.j.williams@intel.com>2017-07-25 16:30:51 -0700
commit0dd69643061d78f3f9047c2382d8d77cca1ac943 (patch)
treed290332080ff1b4bcfb60bbcbf3b09944e7caaa8 /include/linux/libnvdimm.h
parentLinux 4.13-rc2 (diff)
downloadlinux-dev-0dd69643061d78f3f9047c2382d8d77cca1ac943.tar.xz
linux-dev-0dd69643061d78f3f9047c2382d8d77cca1ac943.zip
libnvdimm: Stop using HPAGE_SIZE
Currently libnvdimm uses HPAGE_SIZE as the default alignment for DAX and PFN devices. HPAGE_SIZE is the default hugetlbfs page size and when hugetlbfs is disabled it defaults to PAGE_SIZE. Given DAX has more in common with THP than hugetlbfs we should proably be using HPAGE_PMD_SIZE, but this is undefined when THP is disabled so lets just give it a new name. The other usage of HPAGE_SIZE in libnvdimm is when determining how large the altmap should be. For the reasons mentioned above it doesn't really make sense to use HPAGE_SIZE here either. PMD_SIZE seems to be safe to use in generic code and it happens to match the vmemmap allocation block on x86 and Power. It's still a hack, but it's a slightly nicer hack. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/libnvdimm.h')
0 files changed, 0 insertions, 0 deletions