aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.h
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r--block/blk-cgroup.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h
index 1add3dcfc19d..2060d812ae8e 100644
--- a/block/blk-cgroup.h
+++ b/block/blk-cgroup.h
@@ -58,14 +58,17 @@ enum stat_type {
58 58
59/* Per cpu stats */ 59/* Per cpu stats */
60enum stat_type_cpu { 60enum stat_type_cpu {
61 BLKIO_STAT_CPU_SECTORS,
62 /* Total bytes transferred */ 61 /* Total bytes transferred */
63 BLKIO_STAT_CPU_SERVICE_BYTES, 62 BLKIO_STAT_CPU_SERVICE_BYTES,
64 /* Total IOs serviced, post merge */ 63 /* Total IOs serviced, post merge */
65 BLKIO_STAT_CPU_SERVICED, 64 BLKIO_STAT_CPU_SERVICED,
66 BLKIO_STAT_CPU_NR 65
66 /* All the single valued stats go below this */
67 BLKIO_STAT_CPU_SECTORS,
67}; 68};
68 69
70#define BLKIO_STAT_CPU_ARR_NR (BLKIO_STAT_CPU_SERVICED + 1)
71
69enum stat_sub_type { 72enum stat_sub_type {
70 BLKIO_STAT_READ = 0, 73 BLKIO_STAT_READ = 0,
71 BLKIO_STAT_WRITE, 74 BLKIO_STAT_WRITE,
@@ -167,7 +170,7 @@ struct blkio_group_stats {
167/* Per cpu blkio group stats */ 170/* Per cpu blkio group stats */
168struct blkio_group_stats_cpu { 171struct blkio_group_stats_cpu {
169 uint64_t sectors; 172 uint64_t sectors;
170 uint64_t stat_arr_cpu[BLKIO_STAT_CPU_NR][BLKIO_STAT_TOTAL]; 173 uint64_t stat_arr_cpu[BLKIO_STAT_CPU_ARR_NR][BLKIO_STAT_TOTAL];
171 struct u64_stats_sync syncp; 174 struct u64_stats_sync syncp;
172}; 175};
173 176