mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
block: move capacity from disk to part0
Move disk->capacity to part0->nr_sects and convert all users who
directly accessed the field to use {get|set}_capacity(). This is done
early to allow the __dev field to be moved.
Signed-off-by: Tejun Heo <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
b5d0b9df0b
commit
80795aefb7
5 changed files with 7 additions and 8 deletions
|
|
@ -586,7 +586,7 @@ void del_gendisk(struct gendisk *disk)
|
|||
disk_part_iter_exit(&piter);
|
||||
|
||||
invalidate_partition(disk, 0);
|
||||
disk->capacity = 0;
|
||||
set_capacity(disk, 0);
|
||||
disk->flags &= ~GENHD_FL_UP;
|
||||
unlink_gendisk(disk);
|
||||
disk_stat_set_all(disk, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue