aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/dax.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/dax.c b/fs/dax.c
index 131fd35ae39d..bff20cc56130 100644
--- a/fs/dax.c
+++ b/fs/dax.c
@@ -627,6 +627,13 @@ int __dax_pmd_fault(struct vm_area_struct *vma, unsigned long address,
627 if ((length < PMD_SIZE) || (pfn & PG_PMD_COLOUR)) 627 if ((length < PMD_SIZE) || (pfn & PG_PMD_COLOUR))
628 goto fallback; 628 goto fallback;
629 629
630 /*
631 * TODO: teach vmf_insert_pfn_pmd() to support
632 * 'pte_special' for pmds
633 */
634 if (pfn_valid(pfn))
635 goto fallback;
636
630 if (buffer_unwritten(&bh) || buffer_new(&bh)) { 637 if (buffer_unwritten(&bh) || buffer_new(&bh)) {
631 int i; 638 int i;
632 for (i = 0; i < PTRS_PER_PMD; i++) 639 for (i = 0; i < PTRS_PER_PMD; i++)