Commit c046c321 authored by Dan Williams's avatar Dan Williams Committed by Linus Torvalds

dax: re-enable dax pmd mappings

Now that the get_user_pages() path knows how to handle dax-pmd mappings,
remove the protections that disabled dax-pmd support.

Tests available from

    make TESTS="lib/ lib/" check
Signed-off-by: default avatarDan Williams <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent cbb38e41
......@@ -50,7 +50,8 @@ config FS_DAX_PMD
default FS_DAX
depends on FS_DAX
depends on BROKEN
depends on ZONE_DEVICE
endif # BLOCK
......@@ -592,7 +592,7 @@ int __dax_pmd_fault(struct vm_area_struct *vma, unsigned long address,
sector_t block;
int result = 0;
/* dax pmd mappings are broken wrt gup and fork */
/* dax pmd mappings require pfn_t_devmap() */
......@@ -717,11 +717,7 @@ int __dax_pmd_fault(struct vm_area_struct *vma, unsigned long address,
goto fallback;
* TODO: teach vmf_insert_pfn_pmd() to support
* 'pte_special' for pmds
if (pfn_t_has_page(dax.pfn)) {
if (!pfn_t_devmap(dax.pfn)) {
dax_unmap_atomic(bdev, &dax);
dax_pmd_dbg(&bh, address, "pfn not in memmap");
goto fallback;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment