Message ID | 20200527052419.403583-16-hch@lst.de (mailing list archive) |
---|---|
State | Mainlined |
Commit | b2d76adbc0828e0f108567973bcc500ed1abc139 |
Headers | show |
Series | [01/16] block: add disk/bio-based accounting helpers | expand |
diff --git a/include/linux/part_stat.h b/include/linux/part_stat.h index a6b0938ce82e9..24125778ef3ec 100644 --- a/include/linux/part_stat.h +++ b/include/linux/part_stat.h @@ -54,7 +54,7 @@ static inline void part_stat_set_all(struct hd_struct *part, int value) part_stat_read(part, field[STAT_DISCARD])) #define __part_stat_add(part, field, addnd) \ - (part_stat_get(part, field) += (addnd)) + __this_cpu_add((part)->dkstats->field, addnd) #define part_stat_add(part, field, addnd) do { \ __part_stat_add((part), field, addnd); \