mm: fix races between swapoff and flush dcache
[sfrench/cifs-2.6.git] / arch / arm / mm / fault-armv.c
index d9e0d00a6699026a56606e3ae820c05ca5e183a3..4d75dae5ac96256447ebec5b0460831595dcfdbe 100644 (file)
@@ -195,7 +195,7 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long addr,
        if (page == ZERO_PAGE(0))
                return;
 
-       mapping = page_mapping(page);
+       mapping = page_mapping_file(page);
        if (!test_and_set_bit(PG_dcache_clean, &page->flags))
                __flush_dcache_page(mapping, page);
        if (mapping) {