diff options
author | Christoph Hellwig <hch@lst.de> | 2023-08-11 12:08:19 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-08-21 14:35:30 +0200 |
commit | ab6860f62bfe329e11e5b5b7295b673c9c3a62d0 (patch) | |
tree | 72b68badcd687dd3ed5928dc33319b98ddbd167e /include/linux/blkdev.h | |
parent | 0c1c9a27ce909e3988f8c6407e26a22a7e1cd276 (diff) | |
download | lwn-ab6860f62bfe329e11e5b5b7295b673c9c3a62d0.tar.gz lwn-ab6860f62bfe329e11e5b5b7295b673c9c3a62d0.zip |
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>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r-- | include/linux/blkdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 83262702eea7..c8eab6effc22 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -750,7 +750,7 @@ static inline int bdev_read_only(struct block_device *bdev) } bool set_capacity_and_notify(struct gendisk *disk, sector_t size); -bool disk_force_media_change(struct gendisk *disk, unsigned int events); +void disk_force_media_change(struct gendisk *disk); void add_disk_randomness(struct gendisk *disk) __latent_entropy; void rand_initialize_disk(struct gendisk *disk); |