diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-03-18 19:01:41 +0100 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 20:01:34 -0600 |
commit | 0882049fc198e21f632678a88590c1c75e8a932e (patch) | |
tree | 306810d9acfa8c6495812cfbed44df52d859cb37 /block.c | |
parent | 58105bc517c45b8b910edcec9697886fc8b8fef8 (diff) | |
download | hqemu-0882049fc198e21f632678a88590c1c75e8a932e.zip hqemu-0882049fc198e21f632678a88590c1c75e8a932e.tar.gz |
block: Remove bdrv_(set_)enable_write_cache()
The only remaining users were block jobs (mirror and backup) which
unconditionally enabled WCE on the BlockBackend of the target image. As
these block jobs don't go through BlockBackend for their I/O requests,
they aren't affected by this setting anyway but always get a writeback
mode, so that call can be removed.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -2695,22 +2695,6 @@ int bdrv_is_sg(BlockDriverState *bs) return bs->sg; } -int bdrv_enable_write_cache(BlockDriverState *bs) -{ - if (bs->blk) { - return blk_enable_write_cache(bs->blk); - } else { - return true; - } -} - -void bdrv_set_enable_write_cache(BlockDriverState *bs, bool wce) -{ - if (bs->blk) { - blk_set_enable_write_cache(bs->blk, wce); - } -} - int bdrv_is_encrypted(BlockDriverState *bs) { if (bs->backing && bs->backing->bs->encrypted) { |