summaryrefslogtreecommitdiff
path: root/include/linux/part_stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/part_stat.h')
-rw-r--r--include/linux/part_stat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/part_stat.h b/include/linux/part_stat.h
index 87ad60106e1d..680de036691e 100644
--- a/include/linux/part_stat.h
+++ b/include/linux/part_stat.h
@@ -59,8 +59,8 @@ static inline void part_stat_set_all(struct hd_struct *part, int value)
#define part_stat_add(part, field, addnd) do { \
__part_stat_add((part), field, addnd); \
if ((part)->partno) \
- __part_stat_add(&part_to_disk((part))->part0, \
- field, addnd); \
+ __part_stat_add(part_to_disk((part))->part0->bd_part, \
+ field, addnd); \
} while (0)
#define part_stat_dec(part, field) \