block: simplify the disk_force_media_change interface
authorChristoph Hellwig <hch@lst.de>
Fri, 11 Aug 2023 10:08:19 +0000 (12:08 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 21 Aug 2023 12:35:30 +0000 (14:35 +0200)
commitab6860f62bfe329e11e5b5b7295b673c9c3a62d0
tree72b68badcd687dd3ed5928dc33319b98ddbd167e
parent0c1c9a27ce909e3988f8c6407e26a22a7e1cd276
block: simplify the disk_force_media_change interface

Hard code the events to DISK_EVENT_MEDIA_CHANGE as that is the only
useful use case, and drop the superfluous return value.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Message-Id: <20230811100828.1897174-9-hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
block/disk-events.c
drivers/block/loop.c
include/linux/blkdev.h