diff options
author | Jens Axboe <axboe@suse.de> | 2004-09-13 17:50:33 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-13 17:50:33 -0700 |
commit | 8d17d3315a512d1ff2814e2b51140f05ef00d410 (patch) | |
tree | af1df597a2171ef89312940479f098e6030d920f /mm | |
parent | 20bfc662ae479210b45c6605147525346ba358c1 (diff) | |
download | history-8d17d3315a512d1ff2814e2b51140f05ef00d410.tar.gz |
[PATCH] block highmem flushes
Add a couple of missing cache flushes to the bouncing code.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/highmem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/highmem.c b/mm/highmem.c index c4debe2576473a..c190cf80af4d5b 100644 --- a/mm/highmem.c +++ b/mm/highmem.c @@ -300,6 +300,7 @@ 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); } } @@ -406,6 +407,7 @@ static void __blk_queue_bounce(request_queue_t *q, struct bio **bio_orig, if (rw == WRITE) { char *vto, *vfrom; + flush_dcache_page(from->bv_page); vto = page_address(to->bv_page) + to->bv_offset; vfrom = kmap(from->bv_page) + from->bv_offset; memcpy(vto, vfrom, to->bv_len); |