diff options
| author | Andrew Morton <[email protected]> | 2009-12-21 16:27:50 -0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2009-12-22 09:12:48 +0100 |
| commit | 6ec1480d8539c8e2e6ba7fbbeffe5adc640bfe98 (patch) | |
| tree | f50f8ff0bea1dd0f4f15ce0dcb58f243bf1d4738 | |
| parent | e019ef0c4f11a0acb79b89fb1e09c72197b42bbe (diff) | |
aoe: switch to the new bio_flush_dcache_pages() interface
Cc: "Ed L. Cashin" <[email protected]>
Cc: David Woodhouse <[email protected]>
Cc: Ilya Loginov <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Horton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
| -rw-r--r-- | drivers/block/aoe/aoecmd.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/drivers/block/aoe/aoecmd.c b/drivers/block/aoe/aoecmd.c index 13bb69d2abb3..64a223b0cc22 100644 --- a/drivers/block/aoe/aoecmd.c +++ b/drivers/block/aoe/aoecmd.c @@ -735,21 +735,6 @@ diskstats(struct gendisk *disk, struct bio *bio, ulong duration, sector_t sector part_stat_unlock(); } -/* - * Ensure we don't create aliases in VI caches - */ -static inline void -killalias(struct bio *bio) -{ - struct bio_vec *bv; - int i; - - if (bio_data_dir(bio) == READ) - __bio_for_each_segment(bv, bio, i, 0) { - flush_dcache_page(bv->bv_page); - } -} - void aoecmd_ata_rsp(struct sk_buff *skb) { @@ -871,7 +856,7 @@ aoecmd_ata_rsp(struct sk_buff *skb) if (buf->flags & BUFFL_FAIL) bio_endio(buf->bio, -EIO); else { - killalias(buf->bio); + bio_flush_dcache_pages(buf->bio); bio_endio(buf->bio, 0); } mempool_free(buf, d->bufpool); |