|
@@ -929,9 +929,9 @@ static inline void __local_flush_dcache_page(struct page *page)
|
|
|
#ifdef DCACHE_ALIASING_POSSIBLE
|
|
|
__flush_dcache_page(page_address(page),
|
|
|
((tlb_type == spitfire) &&
|
|
|
- page_mapping(page) != NULL));
|
|
|
+ page_mapping_file(page) != NULL));
|
|
|
#else
|
|
|
- if (page_mapping(page) != NULL &&
|
|
|
+ if (page_mapping_file(page) != NULL &&
|
|
|
tlb_type == spitfire)
|
|
|
__flush_icache_page(__pa(page_address(page)));
|
|
|
#endif
|
|
@@ -958,7 +958,7 @@ void smp_flush_dcache_page_impl(struct page *page, int cpu)
|
|
|
|
|
|
if (tlb_type == spitfire) {
|
|
|
data0 = ((u64)&xcall_flush_dcache_page_spitfire);
|
|
|
- if (page_mapping(page) != NULL)
|
|
|
+ if (page_mapping_file(page) != NULL)
|
|
|
data0 |= ((u64)1 << 32);
|
|
|
} else if (tlb_type == cheetah || tlb_type == cheetah_plus) {
|
|
|
#ifdef DCACHE_ALIASING_POSSIBLE
|
|
@@ -994,7 +994,7 @@ void flush_dcache_page_all(struct mm_struct *mm, struct page *page)
|
|
|
pg_addr = page_address(page);
|
|
|
if (tlb_type == spitfire) {
|
|
|
data0 = ((u64)&xcall_flush_dcache_page_spitfire);
|
|
|
- if (page_mapping(page) != NULL)
|
|
|
+ if (page_mapping_file(page) != NULL)
|
|
|
data0 |= ((u64)1 << 32);
|
|
|
} else if (tlb_type == cheetah || tlb_type == cheetah_plus) {
|
|
|
#ifdef DCACHE_ALIASING_POSSIBLE
|