diff options
Diffstat (limited to 'fs/partitions/check.c')
-rw-r--r-- | fs/partitions/check.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 9c21119512b9..d545e97d99c3 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c | |||
@@ -290,7 +290,8 @@ ssize_t part_inflight_show(struct device *dev, | |||
290 | { | 290 | { |
291 | struct hd_struct *p = dev_to_part(dev); | 291 | struct hd_struct *p = dev_to_part(dev); |
292 | 292 | ||
293 | return sprintf(buf, "%8u %8u\n", p->in_flight[0], p->in_flight[1]); | 293 | return sprintf(buf, "%8u %8u\n", atomic_read(&p->in_flight[0]), |
294 | atomic_read(&p->in_flight[1])); | ||
294 | } | 295 | } |
295 | 296 | ||
296 | #ifdef CONFIG_FAIL_MAKE_REQUEST | 297 | #ifdef CONFIG_FAIL_MAKE_REQUEST |
@@ -499,7 +500,7 @@ struct hd_struct *add_partition(struct gendisk *disk, int partno, | |||
499 | /* everything is up and running, commence */ | 500 | /* everything is up and running, commence */ |
500 | rcu_assign_pointer(ptbl->part[partno], p); | 501 | rcu_assign_pointer(ptbl->part[partno], p); |
501 | 502 | ||
502 | /* suppress uevent if the disk supresses it */ | 503 | /* suppress uevent if the disk suppresses it */ |
503 | if (!dev_get_uevent_suppress(ddev)) | 504 | if (!dev_get_uevent_suppress(ddev)) |
504 | kobject_uevent(&pdev->kobj, KOBJ_ADD); | 505 | kobject_uevent(&pdev->kobj, KOBJ_ADD); |
505 | 506 | ||
@@ -584,7 +585,7 @@ rescan: | |||
584 | /* | 585 | /* |
585 | * If any partition code tried to read beyond EOD, try | 586 | * If any partition code tried to read beyond EOD, try |
586 | * unlocking native capacity even if partition table is | 587 | * unlocking native capacity even if partition table is |
587 | * sucessfully read as we could be missing some partitions. | 588 | * successfully read as we could be missing some partitions. |
588 | */ | 589 | */ |
589 | if (state->access_beyond_eod) { | 590 | if (state->access_beyond_eod) { |
590 | printk(KERN_WARNING | 591 | printk(KERN_WARNING |