]> www.infradead.org Git - users/hch/block.git/commit
virtio_blk: remove virtblk_update_cache_mode
authorChristoph Hellwig <hch@lst.de>
Wed, 29 May 2024 06:51:10 +0000 (08:51 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 16 Jun 2024 09:47:55 +0000 (11:47 +0200)
commite2b106e8ba9870080d8139f25ad2539e41c6e083
tree9fc7c79340e09fe7063d6edf7bd751dfc573cc78
parent78e5d5258ab2a2063884f05dacc5e72d753a1b54
virtio_blk: remove virtblk_update_cache_mode

virtblk_update_cache_mode boils down to a single call to
blk_queue_write_cache.  Remove it in preparation for moving the cache
control flags into the queue_limits.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
drivers/block/virtio_blk.c