block: Remove bdrv_(set_)enable_write_cache()
commit09cf9db1bcd60d9889b774925ba7058286d35412
authorKevin Wolf <kwolf@redhat.com>
Fri, 18 Mar 2016 18:01:41 +0000 (18 19:01 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 30 Mar 2016 10:16:03 +0000 (30 12:16 +0200)
treed98287953aec5ba2676fc377c007f34a54829028
parent61de4c680846167e01d7ba42bf787f8d1d80bf5e
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>
block.c
block/backup.c
block/mirror.c
include/block/block.h