summaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/cache.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-10-13 04:27:08 +0200
committerPaul Mundt <lethal@linux-sh.org>2009-10-13 04:27:08 +0200
commit95019b48addc014c7de6653517663527a1747fb7 (patch)
tree5488066e45e8e9de1fef431f39a93cd2d5967b61 /arch/sh/mm/cache.c
parentMerge branch 'sh/ftrace' of git://github.com/mfleming/linux-2.6 (diff)
parentsh: force dcache flush if dcache_dirty bit set. (diff)
downloadlinux-95019b48addc014c7de6653517663527a1747fb7.tar.xz
linux-95019b48addc014c7de6653517663527a1747fb7.zip
Merge branch 'sh/stable-updates'
Diffstat (limited to 'arch/sh/mm/cache.c')
-rw-r--r--arch/sh/mm/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/cache.c b/arch/sh/mm/cache.c
index 4aa926054531..e8810f7fc7ea 100644
--- a/arch/sh/mm/cache.c
+++ b/arch/sh/mm/cache.c
@@ -128,7 +128,7 @@ void __update_cache(struct vm_area_struct *vma,
return;
page = pfn_to_page(pfn);
- if (pfn_valid(pfn) && page_mapping(page)) {
+ if (pfn_valid(pfn)) {
int dirty = test_and_clear_bit(PG_dcache_dirty, &page->flags);
if (dirty) {
unsigned long addr = (unsigned long)page_address(page);