diff options
author | Jens Axboe <axboe@fb.com> | 2016-03-30 18:17:47 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-04-13 00:00:39 +0200 |
commit | fec3ff5d1eef8d81b2922deb4eb5a5e84a93bf4c (patch) | |
tree | 4573e9083e31c25460a54ae8b2b41f90b7464c63 /drivers/mtd/mtd_blkdevs.c | |
parent | mmc/block: switch to using blk_queue_write_cache() (diff) | |
download | linux-fec3ff5d1eef8d81b2922deb4eb5a5e84a93bf4c.tar.xz linux-fec3ff5d1eef8d81b2922deb4eb5a5e84a93bf4c.zip |
mtd: 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/mtd/mtd_blkdevs.c')
-rw-r--r-- | drivers/mtd/mtd_blkdevs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c index f4701182b558..74ae24364a8d 100644 --- a/drivers/mtd/mtd_blkdevs.c +++ b/drivers/mtd/mtd_blkdevs.c @@ -409,7 +409,7 @@ int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new) goto error3; if (tr->flush) - blk_queue_flush(new->rq, REQ_FLUSH); + blk_queue_write_cache(new->rq, true, false); new->rq->queuedata = new; blk_queue_logical_block_size(new->rq, tr->blksize); |