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 /drivers/block/loop.c | |
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 'drivers/block/loop.c')
-rw-r--r-- | drivers/block/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index fcc5e32f0993..9a27d4f1c08a 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -251,7 +251,7 @@ loop_validate_block_size(unsigned short bsize) */ static void loop_set_size(struct loop_device *lo, loff_t size) { - if (!set_capacity_revalidate_and_notify(lo->lo_disk, size, true)) + if (!set_capacity_and_notify(lo->lo_disk, size)) kobject_uevent(&disk_to_dev(lo->lo_disk)->kobj, KOBJ_CHANGE); } |