Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ec1480d authored by Andrew Morton's avatar Andrew Morton Committed by Jens Axboe
Browse files

aoe: switch to the new bio_flush_dcache_pages() interface



Cc: "Ed L. Cashin" <ecashin@coraid.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Ilya Loginov <isloginov@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Horton <phorton@bitbox.co.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent e019ef0c
Loading
Loading
Loading
Loading
+1 −16
Original line number Diff line number Diff line
@@ -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);