summaryrefslogtreecommitdiff
path: root/drivers/md/bcache
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-03-30 16:13:22 (GMT)
committerJens Axboe <axboe@fb.com>2016-04-12 22:00:39 (GMT)
commit84b4ff9ef22a97231e5d6aeca544a243d0ac5d81 (patch)
treebe895751c67f20e9c0bb64bee26edc9738fe6453 /drivers/md/bcache
parentad9126ac723f9e8ed900194d226a0608ffeae45e (diff)
downloadlinux-84b4ff9ef22a97231e5d6aeca544a243d0ac5d81.tar.xz
bcache: switch to using blk_queue_write_cache()
Signed-off-by: Jens Axboe <axboe@fb.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/md/bcache')
-rw-r--r--drivers/md/bcache/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index a296425..f5dbb4e 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;
}