From: He Zhe <[email protected]>
This reverts commit 979c690d9a017db14b7759a099478e3faad991ac.
---
fs/block_dev.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 69bf2fb6f7cd..387b64665dc2 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -1433,7 +1433,6 @@ static void check_disk_size_change(struct gendisk *disk,
if (bdev_size > disk_size)
flush_disk(bdev, false);
}
- bdev->bd_invalidated = 0;
}
/**
@@ -1463,6 +1462,7 @@ int revalidate_disk(struct gendisk *disk)
mutex_lock(&bdev->bd_mutex);
check_disk_size_change(disk, bdev, ret == 0);
+ bdev->bd_invalidated = 0;
mutex_unlock(&bdev->bd_mutex);
bdput(bdev);
}
@@ -1526,6 +1526,7 @@ int bdev_disk_changed(struct block_device *bdev, bool
invalidate)
disk->fops->revalidate_disk(disk);
check_disk_size_change(disk, bdev, !invalidate);
+ bdev->bd_invalidated = 0;
if (get_capacity(disk)) {
ret = blk_add_partitions(disk, bdev);
--
2.24.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8441):
https://lists.yoctoproject.org/g/linux-yocto/message/8441
Mute This Topic: https://lists.yoctoproject.org/mt/71728957/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-