]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/mips/mm/c-r4k.c
mm: differentiate page_mapped() from page_mapcount() for compound pages
[karo-tx-linux.git] / arch / mips / mm / c-r4k.c
index 5d3a25e1cfaea62cf7859f3408e3d101f9bf4060..caac3d747a909dbd75d9f0935b8a67766795174c 100644 (file)
@@ -587,7 +587,8 @@ static inline void local_r4k_flush_cache_page(void *args)
                 * another ASID than the current one.
                 */
                map_coherent = (cpu_has_dc_aliases &&
-                               page_mapped(page) && !Page_dcache_dirty(page));
+                               page_mapcount(page) &&
+                               !Page_dcache_dirty(page));
                if (map_coherent)
                        vaddr = kmap_coherent(page, addr);
                else