diff options
Diffstat (limited to 'block/genhd.c')
-rw-r--r-- | block/genhd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/block/genhd.c b/block/genhd.c index 3608289c8ecd..82d97c3594a8 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
@@ -602,7 +602,7 @@ void add_disk(struct gendisk *disk) | |||
602 | disk->major = MAJOR(devt); | 602 | disk->major = MAJOR(devt); |
603 | disk->first_minor = MINOR(devt); | 603 | disk->first_minor = MINOR(devt); |
604 | 604 | ||
605 | /* Register BDI before referencing it from bdev */ | 605 | /* Register BDI before referencing it from bdev */ |
606 | bdi = &disk->queue->backing_dev_info; | 606 | bdi = &disk->queue->backing_dev_info; |
607 | bdi_register_dev(bdi, disk_devt(disk)); | 607 | bdi_register_dev(bdi, disk_devt(disk)); |
608 | 608 | ||
@@ -1148,7 +1148,7 @@ static int diskstats_show(struct seq_file *seqf, void *v) | |||
1148 | "wsect wuse running use aveq" | 1148 | "wsect wuse running use aveq" |
1149 | "\n\n"); | 1149 | "\n\n"); |
1150 | */ | 1150 | */ |
1151 | 1151 | ||
1152 | disk_part_iter_init(&piter, gp, DISK_PITER_INCL_EMPTY_PART0); | 1152 | disk_part_iter_init(&piter, gp, DISK_PITER_INCL_EMPTY_PART0); |
1153 | while ((hd = disk_part_iter_next(&piter))) { | 1153 | while ((hd = disk_part_iter_next(&piter))) { |
1154 | cpu = part_stat_lock(); | 1154 | cpu = part_stat_lock(); |
@@ -1172,7 +1172,7 @@ static int diskstats_show(struct seq_file *seqf, void *v) | |||
1172 | ); | 1172 | ); |
1173 | } | 1173 | } |
1174 | disk_part_iter_exit(&piter); | 1174 | disk_part_iter_exit(&piter); |
1175 | 1175 | ||
1176 | return 0; | 1176 | return 0; |
1177 | } | 1177 | } |
1178 | 1178 | ||