diff options
Diffstat (limited to 'fs/partitions/check.c')
-rw-r--r-- | fs/partitions/check.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 60592d9f43b6..f517869e8d10 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c | |||
@@ -210,15 +210,15 @@ ssize_t part_size_show(struct device *dev, | |||
210 | return sprintf(buf, "%llu\n",(unsigned long long)p->nr_sects); | 210 | return sprintf(buf, "%llu\n",(unsigned long long)p->nr_sects); |
211 | } | 211 | } |
212 | 212 | ||
213 | static ssize_t part_stat_show(struct device *dev, | 213 | ssize_t part_stat_show(struct device *dev, |
214 | struct device_attribute *attr, char *buf) | 214 | struct device_attribute *attr, char *buf) |
215 | { | 215 | { |
216 | struct hd_struct *p = dev_to_part(dev); | 216 | struct hd_struct *p = dev_to_part(dev); |
217 | int cpu; | 217 | int cpu; |
218 | 218 | ||
219 | cpu = disk_stat_lock(); | 219 | cpu = part_stat_lock(); |
220 | part_round_stats(cpu, p); | 220 | part_round_stats(cpu, p); |
221 | disk_stat_unlock(); | 221 | part_stat_unlock(); |
222 | return sprintf(buf, | 222 | return sprintf(buf, |
223 | "%8lu %8lu %8llu %8u " | 223 | "%8lu %8lu %8llu %8u " |
224 | "%8lu %8lu %8llu %8u " | 224 | "%8lu %8lu %8llu %8u " |
@@ -575,8 +575,8 @@ void del_gendisk(struct gendisk *disk) | |||
575 | set_capacity(disk, 0); | 575 | set_capacity(disk, 0); |
576 | disk->flags &= ~GENHD_FL_UP; | 576 | disk->flags &= ~GENHD_FL_UP; |
577 | unlink_gendisk(disk); | 577 | unlink_gendisk(disk); |
578 | disk_stat_set_all(disk, 0); | 578 | part_stat_set_all(&disk->part0, 0); |
579 | disk->stamp = 0; | 579 | disk->part0.stamp = 0; |
580 | 580 | ||
581 | kobject_put(disk->part0.holder_dir); | 581 | kobject_put(disk->part0.holder_dir); |
582 | kobject_put(disk->slave_dir); | 582 | kobject_put(disk->slave_dir); |