|
@@ -568,7 +568,11 @@ int __dax_pmd_fault(struct vm_area_struct *vma, unsigned long address,
|
|
if ((pgoff | PG_PMD_COLOUR) >= size)
|
|
if ((pgoff | PG_PMD_COLOUR) >= size)
|
|
goto fallback;
|
|
goto fallback;
|
|
|
|
|
|
- if (is_huge_zero_pmd(*pmd))
|
|
|
|
|
|
+ /*
|
|
|
|
+ * If we allocated new storage, make sure no process has any
|
|
|
|
+ * zero pages covering this hole
|
|
|
|
+ */
|
|
|
|
+ if (buffer_new(&bh))
|
|
unmap_mapping_range(mapping, pgoff << PAGE_SHIFT, PMD_SIZE, 0);
|
|
unmap_mapping_range(mapping, pgoff << PAGE_SHIFT, PMD_SIZE, 0);
|
|
|
|
|
|
if (!write && !buffer_mapped(&bh) && buffer_uptodate(&bh)) {
|
|
if (!write && !buffer_mapped(&bh) && buffer_uptodate(&bh)) {
|