diff options
author | Jens Axboe <axboe@fb.com> | 2016-03-30 10:09:35 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-04-12 16:00:39 -0600 |
commit | 21d0727f639e4ba2bd194b2eb9b38ac840bbbc87 (patch) | |
tree | 005bbf2355b340c0bef9b62dd805f8471e4e3692 /drivers/block/loop.c | |
parent | fe8fb75e3a1f6f7fac8dc68024eb0062191fe424 (diff) | |
download | linux-21d0727f639e4ba2bd194b2eb9b38ac840bbbc87.tar.gz linux-21d0727f639e4ba2bd194b2eb9b38ac840bbbc87.tar.bz2 linux-21d0727f639e4ba2bd194b2eb9b38ac840bbbc87.zip |
loop: 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/block/loop.c')
-rw-r--r-- | drivers/block/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 423f4ca7d712..7e5e27ac45bb 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -937,7 +937,7 @@ static int loop_set_fd(struct loop_device *lo, fmode_t mode, mapping_set_gfp_mask(mapping, lo->old_gfp_mask & ~(__GFP_IO|__GFP_FS)); if (!(lo_flags & LO_FLAGS_READ_ONLY) && file->f_op->fsync) - blk_queue_flush(lo->lo_queue, REQ_FLUSH); + blk_queue_write_cache(lo->lo_queue, true, false); loop_update_dio(lo); set_capacity(lo->lo_disk, size); |