summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-11-12 17:50:04 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-18 19:22:25 +0100
commit40ca77fdac0f4eeeb248778bc95316920ff3d7e2 (patch)
treea4dfc0cd2ffae5050493fc963d76992af95824cd /include/linux
parentbdffd69031b8968cec248d13468837b72c6926f7 (diff)
downloadlinux-stable-40ca77fdac0f4eeeb248778bc95316920ff3d7e2.tar.gz
linux-stable-40ca77fdac0f4eeeb248778bc95316920ff3d7e2.tar.bz2
linux-stable-40ca77fdac0f4eeeb248778bc95316920ff3d7e2.zip
block: add a return value to set_capacity_revalidate_and_notify
commit 7e890c37c25c7cbca37ff0ab292873d8146e713b upstream. Return if the function ended up sending an uevent or not. Cc: stable@vger.kernel.org # v5.9 Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Petr Vorel <pvorel@suse.cz> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/genhd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 4ab853461dff..475b286ea10b 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -315,7 +315,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);
-extern void set_capacity_revalidate_and_notify(struct gendisk *disk,
+extern bool set_capacity_revalidate_and_notify(struct gendisk *disk,
sector_t size, bool revalidate);
extern unsigned int disk_clear_events(struct gendisk *disk, unsigned int mask);