Andrew, Here is another occasion where we want special-case hugetlbfs enabling to also apply to device-dax. I started to wonder what other hstate conversions we might do beyond ->split() and ->pagesize(), but this appears to be the last of the usages of hstate_vma() in generic/non-hugetlbfs specific code paths.
This is 4.16 material. --- Dan Williams (2): mm, hugetlbfs: introduce ->pagesize() to vm_operations_struct device-dax: implement ->pagesize() for smaps to report MMUPageSize arch/powerpc/mm/hugetlbpage.c | 5 +---- drivers/dax/device.c | 10 ++++++++++ include/linux/hugetlb.h | 30 ++++++++++++++++++++++++------ include/linux/mm.h | 1 + mm/hugetlb.c | 38 ++++++++------------------------------ 5 files changed, 44 insertions(+), 40 deletions(-) _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm