diff options
author | Christoph Hellwig <hch@lst.de> | 2018-05-29 16:42:59 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-05-29 08:59:21 -0600 |
commit | 5afb78356cead66db2203061fed6fc8957527ed4 (patch) | |
tree | 3ca5cb4673b79152404cedfd5341ca25669cb77b /block/partition-generic.c | |
parent | 4163a0398434a9b705399ae2c48fb4fb14008434 (diff) | |
download | linux-5afb78356cead66db2203061fed6fc8957527ed4.tar.bz2 |
block: don't print a message when the device went away
The information about a size change in this case just creates confusion.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/partition-generic.c')
-rw-r--r-- | block/partition-generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/partition-generic.c b/block/partition-generic.c index 93ef8ce568a1..3dcfd4ec0e11 100644 --- a/block/partition-generic.c +++ b/block/partition-generic.c @@ -516,7 +516,7 @@ rescan: if (disk->fops->revalidate_disk) disk->fops->revalidate_disk(disk); - check_disk_size_change(disk, bdev); + check_disk_size_change(disk, bdev, true); bdev->bd_invalidated = 0; if (!get_capacity(disk) || !(state = check_partition(disk, bdev))) return 0; @@ -641,7 +641,7 @@ int invalidate_partitions(struct gendisk *disk, struct block_device *bdev) return res; set_capacity(disk, 0); - check_disk_size_change(disk, bdev); + check_disk_size_change(disk, bdev, false); bdev->bd_invalidated = 0; /* tell userspace that the media / partition table may have changed */ kobject_uevent(&disk_to_dev(disk)->kobj, KOBJ_CHANGE); |