diff options
Diffstat (limited to 'fs/partitions/check.c')
-rw-r--r-- | fs/partitions/check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c index b60699c271ac..902b95f1f9d5 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c | |||
@@ -586,7 +586,7 @@ void del_gendisk(struct gendisk *disk) | |||
586 | disk_part_iter_exit(&piter); | 586 | disk_part_iter_exit(&piter); |
587 | 587 | ||
588 | invalidate_partition(disk, 0); | 588 | invalidate_partition(disk, 0); |
589 | disk->capacity = 0; | 589 | set_capacity(disk, 0); |
590 | disk->flags &= ~GENHD_FL_UP; | 590 | disk->flags &= ~GENHD_FL_UP; |
591 | unlink_gendisk(disk); | 591 | unlink_gendisk(disk); |
592 | disk_stat_set_all(disk, 0); | 592 | disk_stat_set_all(disk, 0); |