diff options
author | Gary King <gking@nvidia.com> | 2010-09-09 08:59:51 +0800 |
---|---|---|
committer | Sebastien Jan <s-jan@ti.com> | 2010-09-10 20:01:00 +0200 |
commit | 4d01174085038780d2d7c785edca4597b30970aa (patch) | |
tree | b573992f7126b04481e715d1a0c3330f213f02cc | |
parent | 3902fc8545abffdd66ae34e0d8aee9e2592c585d (diff) |
bounce: call flush_dcache_page after bounce_copy_vec
the bounced page needs to be flushed after data is copied into it,
to ensure that architecture implementations can synchronize
instruction and data caches if necessary.
Signed-off-by: Gary King <gking@nvidia.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
-rw-r--r-- | mm/bounce.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/bounce.c b/mm/bounce.c index 13b6dad1eed2..1481de68184b 100644 --- a/mm/bounce.c +++ b/mm/bounce.c @@ -116,8 +116,8 @@ static void copy_to_high_bio_irq(struct bio *to, struct bio *from) */ vfrom = page_address(fromvec->bv_page) + tovec->bv_offset; - flush_dcache_page(tovec->bv_page); bounce_copy_vec(tovec, vfrom); + flush_dcache_page(tovec->bv_page); } } |