summaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-09-08 16:53:47 +0200
committerJens Axboe <axboe@kernel.dk>2020-09-10 09:32:31 -0600
commitb92b53079aedbfb56bbb9ea360e5119fb563a2a1 (patch)
treeb5c9bd1ba7bff9e448b6d6b7a69ea8aabbe68ad9 /fs/block_dev.c
parent38a2b557e23874dd5ed3c767d57d28b2d10b7683 (diff)
downloadlinux-b92b53079aedbfb56bbb9ea360e5119fb563a2a1.tar.bz2
block: remove check_disk_change
Remove the now unused check_disk_change helper. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r--fs/block_dev.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index c6ac0bd22eca..0b34955b9e36 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -1368,26 +1368,6 @@ void revalidate_disk_size(struct gendisk *disk, bool verbose)
}
EXPORT_SYMBOL(revalidate_disk_size);
-/*
- * This routine checks whether a removable media has been changed,
- * and invalidates all buffer-cache-entries in that case. This
- * is a relatively slow routine, so we have to try to minimize using
- * it. Thus it is called only upon a 'mount' or 'open'. This
- * is the best way of combining speed and utility, I think.
- * People changing diskettes in the middle of an operation deserve
- * to lose :-)
- */
-int check_disk_change(struct block_device *bdev)
-{
- if (!bdev_check_media_change(bdev))
- return 0;
- if (bdev->bd_disk->fops->revalidate_disk)
- bdev->bd_disk->fops->revalidate_disk(bdev->bd_disk);
- return 1;
-}
-
-EXPORT_SYMBOL(check_disk_change);
-
void bd_set_nr_sectors(struct block_device *bdev, sector_t sectors)
{
spin_lock(&bdev->bd_size_lock);