diff options
Diffstat (limited to 'arch/arm/mm/flush.c')
-rw-r--r-- | arch/arm/mm/flush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mm/flush.c b/arch/arm/mm/flush.c index d0ba3551d49a..3cced8455727 100644 --- a/arch/arm/mm/flush.c +++ b/arch/arm/mm/flush.c | |||
@@ -235,7 +235,7 @@ void __flush_dcache_page(struct address_space *mapping, struct page *page) | |||
235 | */ | 235 | */ |
236 | if (mapping && cache_is_vipt_aliasing()) | 236 | if (mapping && cache_is_vipt_aliasing()) |
237 | flush_pfn_alias(page_to_pfn(page), | 237 | flush_pfn_alias(page_to_pfn(page), |
238 | page->index << PAGE_CACHE_SHIFT); | 238 | page->index << PAGE_SHIFT); |
239 | } | 239 | } |
240 | 240 | ||
241 | static void __flush_dcache_aliases(struct address_space *mapping, struct page *page) | 241 | static void __flush_dcache_aliases(struct address_space *mapping, struct page *page) |
@@ -250,7 +250,7 @@ static void __flush_dcache_aliases(struct address_space *mapping, struct page *p | |||
250 | * data in the current VM view associated with this page. | 250 | * data in the current VM view associated with this page. |
251 | * - aliasing VIPT: we only need to find one mapping of this page. | 251 | * - aliasing VIPT: we only need to find one mapping of this page. |
252 | */ | 252 | */ |
253 | pgoff = page->index << (PAGE_CACHE_SHIFT - PAGE_SHIFT); | 253 | pgoff = page->index; |
254 | 254 | ||
255 | flush_dcache_mmap_lock(mapping); | 255 | flush_dcache_mmap_lock(mapping); |
256 | vma_interval_tree_foreach(mpnt, &mapping->i_mmap, pgoff, pgoff) { | 256 | vma_interval_tree_foreach(mpnt, &mapping->i_mmap, pgoff, pgoff) { |