summaryrefslogtreecommitdiff
path: root/block/genhd.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-09-01 17:57:42 +0200
committerJens Axboe <axboe@kernel.dk>2020-09-02 08:00:02 -0600
commitf4ad06f2bb8476548b08f89919ee65abc4e40212 (patch)
tree112bdfd4a1acdc73d752b8e15a31628e0fd81995 /block/genhd.c
parent6540fbf6b634071950f01ee4e4194e2ea8ca72d1 (diff)
block: rename bd_invalidated
Replace bd_invalidate with a new BDEV_NEED_PART_SCAN flag in a bd_flags variable to better describe the condition. 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/genhd.c')
-rw-r--r--block/genhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c
index 5fc6d82e6c68..a36be970b767 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -732,7 +732,7 @@ static void register_disk(struct device *parent, struct gendisk *disk,
if (!bdev)
goto exit;
- bdev->bd_invalidated = 1;
+ set_bit(BDEV_NEED_PART_SCAN, &bdev->bd_flags);
err = blkdev_get(bdev, FMODE_READ, NULL);
if (err < 0)
goto exit;