summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-09-01 17:57:41 +0200
committerJens Axboe <axboe@kernel.dk>2020-09-02 07:59:59 -0600
commit6540fbf6b634071950f01ee4e4194e2ea8ca72d1 (patch)
tree4878c5112ee8c833633370d6d32be441f49ae8e6 /block
parent653cd5341968a4648e75b1b359b3316600d50310 (diff)
downloadlinux-6540fbf6b634071950f01ee4e4194e2ea8ca72d1.tar.bz2
block: don't clear bd_invalidated in check_disk_size_change
bd_invalidated is set by check_disk_change or in add_disk to initiate a partition scan. Move it from check_disk_size_change which is called from both revalidate_disk() and bdev_disk_changed() to only the latter, as that is what is called from the block device open code (and nbd) to deal with the bd_invalidated event. revalidate_disk() on the other hand is mostly used to propagate a size update from the gendisk to the block device, which is entirely unrelated. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions