aboutsummaryrefslogtreecommitdiffstats
path: root/fs/partitions
diff options
context:
space:
mode:
Diffstat (limited to 'fs/partitions')
-rw-r--r--fs/partitions/check.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c
index 96c8bf41e455..c442f0aadac3 100644
--- a/fs/partitions/check.c
+++ b/fs/partitions/check.c
@@ -219,10 +219,11 @@ static ssize_t part_stat_show(struct device *dev,
219 struct device_attribute *attr, char *buf) 219 struct device_attribute *attr, char *buf)
220{ 220{
221 struct hd_struct *p = dev_to_part(dev); 221 struct hd_struct *p = dev_to_part(dev);
222 int cpu;
222 223
223 preempt_disable(); 224 cpu = disk_stat_lock();
224 part_round_stats(p); 225 part_round_stats(cpu, p);
225 preempt_enable(); 226 disk_stat_unlock();
226 return sprintf(buf, 227 return sprintf(buf,
227 "%8lu %8lu %8llu %8u " 228 "%8lu %8lu %8llu %8u "
228 "%8lu %8lu %8llu %8u " 229 "%8lu %8lu %8llu %8u "