Based on Linus' master. While working on improving vm_normal_page() and friends, I stumbled over this issues: refcounted "normal" pages must not be marked using pmd_special() / pud_special().
Fortunately, so far there doesn't seem to be serious damage. This is only compile-tested so far. Still looking for an easy way to test PMD/PUD mappings with DAX. Any tests I can easily run? Cc: Andrew Morton <a...@linux-foundation.org> Cc: Alistair Popple <apop...@nvidia.com> Cc: Lorenzo Stoakes <lorenzo.stoa...@oracle.com> Cc: "Liam R. Howlett" <liam.howl...@oracle.com> Cc: Vlastimil Babka <vba...@suse.cz> Cc: Mike Rapoport <r...@kernel.org> Cc: Suren Baghdasaryan <sur...@google.com> Cc: Michal Hocko <mho...@suse.com> Cc: Zi Yan <z...@nvidia.com> Cc: Baolin Wang <baolin.w...@linux.alibaba.com> Cc: Nico Pache <npa...@redhat.com> Cc: Ryan Roberts <ryan.robe...@arm.com> Cc: Dev Jain <dev.j...@arm.com> Cc: Dan Williams <dan.j.willi...@intel.com> David Hildenbrand (2): mm/huge_memory: don't mark refcounted pages special in vmf_insert_folio_pmd() mm/huge_memory: don't mark refcounted pages special in vmf_insert_folio_pud() include/linux/mm.h | 15 ++++++++++ mm/huge_memory.c | 72 +++++++++++++++++++++++++++++++++++----------- 2 files changed, 70 insertions(+), 17 deletions(-) base-commit: a9dfb7db96f7bc1f30feae673aab7fdbfbc94e9c -- 2.49.0