From: Jens Axboe Date: Wed, 30 Mar 2016 16:13:22 +0000 (-0600) Subject: bcache: switch to using blk_queue_write_cache() X-Git-Tag: v4.7-rc1~156^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84b4ff9ef22a97231e5d6aeca544a243d0ac5d81;p=platform%2Fkernel%2Flinux-exynos.git bcache: switch to using blk_queue_write_cache() Signed-off-by: Jens Axboe Reviewed-by: Christoph Hellwig --- diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index a296425..f5dbb4e8 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -816,7 +816,7 @@ static int bcache_device_init(struct bcache_device *d, unsigned block_size, clear_bit(QUEUE_FLAG_ADD_RANDOM, &d->disk->queue->queue_flags); set_bit(QUEUE_FLAG_DISCARD, &d->disk->queue->queue_flags); - blk_queue_flush(q, REQ_FLUSH|REQ_FUA); + blk_queue_write_cache(q, true, true); return 0; }