summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>2010-05-06 09:10:53 +0200
committerRobert Marklund <robert.marklund@stericsson.com>2011-05-13 10:39:50 +0200
commit41499c3d2588010b0ce2c3631958933c6813f3e3 (patch)
treec08e9fe8fa665075d82425c2e190fe5f769180db /fs
parent7c359a942060eb14b00b2d6e07addacf2ebb5f93 (diff)
fix cache coherence issues with bounce buffers
[Rabin VINCENT] This is for I$-D$ coherence issues when bounce buffers are used for the MMC driver and code is executed from a file system on eMMC. IMO a better fix is to either change flush_kernel_dcache_page() to flush the D$ even on VIPT non-aliasing caches or to replace the flush_kernel_dcache_page() in lib/scatterlist.c with flush_dcache_page(). Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/mpage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/mpage.c b/fs/mpage.c
index d78455a81ec..c23e137f5dc 100644
--- a/fs/mpage.c
+++ b/fs/mpage.c
@@ -52,6 +52,8 @@ static void mpage_end_io(struct bio *bio, int err)
prefetchw(&bvec->bv_page->flags);
if (bio_data_dir(bio) == READ) {
if (uptodate) {
+ /* FIXME: fix to solve cache coherence issues. */
+ flush_dcache_page(page);
SetPageUptodate(page);
} else {
ClearPageUptodate(page);