diff options
author | Christoph Hellwig <hch@lst.de> | 2020-11-16 15:56:56 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-11-16 16:34:14 +0100 |
commit | 449f4ec9892ebc2f37a7eae6d97db2cf7c65e09a (patch) | |
tree | 83d296e86fbbb838ba5c0e08cc152d3c688b3012 /include | |
parent | sd: update the bdev size in sd_revalidate_disk (diff) | |
download | linux-449f4ec9892ebc2f37a7eae6d97db2cf7c65e09a.tar.xz linux-449f4ec9892ebc2f37a7eae6d97db2cf7c65e09a.zip |
block: remove the update_bdev parameter to set_capacity_revalidate_and_notify
The update_bdev argument is always set to true, so remove it. Also
rename the function to the slighly less verbose set_capacity_and_notify,
as propagating the disk size to the block device isn't really
revalidation.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/genhd.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 3cbc2781ef34..46553d6d6025 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h @@ -314,8 +314,7 @@ static inline int get_disk_ro(struct gendisk *disk) extern void disk_block_events(struct gendisk *disk); extern void disk_unblock_events(struct gendisk *disk); extern void disk_flush_events(struct gendisk *disk, unsigned int mask); -bool set_capacity_revalidate_and_notify(struct gendisk *disk, sector_t size, - bool update_bdev); +bool set_capacity_and_notify(struct gendisk *disk, sector_t size); /* drivers/char/random.c */ extern void add_disk_randomness(struct gendisk *disk) __latent_entropy; |