diff options
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r-- | block/blk-cgroup.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index 1fa3c5e8d87f..8bdcf504f94b 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h | |||
@@ -39,6 +39,7 @@ enum stat_type { | |||
39 | BLKIO_STAT_WAIT_TIME, | 39 | BLKIO_STAT_WAIT_TIME, |
40 | /* Number of IOs queued up */ | 40 | /* Number of IOs queued up */ |
41 | BLKIO_STAT_QUEUED, | 41 | BLKIO_STAT_QUEUED, |
42 | |||
42 | /* All the single valued stats go below this */ | 43 | /* All the single valued stats go below this */ |
43 | BLKIO_STAT_TIME, | 44 | BLKIO_STAT_TIME, |
44 | #ifdef CONFIG_DEBUG_BLK_CGROUP | 45 | #ifdef CONFIG_DEBUG_BLK_CGROUP |
@@ -52,6 +53,9 @@ enum stat_type { | |||
52 | #endif | 53 | #endif |
53 | }; | 54 | }; |
54 | 55 | ||
56 | /* Types lower than this live in stat_arr and have subtypes */ | ||
57 | #define BLKIO_STAT_ARR_NR (BLKIO_STAT_QUEUED + 1) | ||
58 | |||
55 | /* Per cpu stats */ | 59 | /* Per cpu stats */ |
56 | enum stat_type_cpu { | 60 | enum stat_type_cpu { |
57 | BLKIO_STAT_CPU_SECTORS, | 61 | BLKIO_STAT_CPU_SECTORS, |
@@ -117,7 +121,7 @@ struct blkio_cgroup { | |||
117 | struct blkio_group_stats { | 121 | struct blkio_group_stats { |
118 | /* total disk time and nr sectors dispatched by this group */ | 122 | /* total disk time and nr sectors dispatched by this group */ |
119 | uint64_t time; | 123 | uint64_t time; |
120 | uint64_t stat_arr[BLKIO_STAT_QUEUED + 1][BLKIO_STAT_TOTAL]; | 124 | uint64_t stat_arr[BLKIO_STAT_ARR_NR][BLKIO_STAT_TOTAL]; |
121 | #ifdef CONFIG_DEBUG_BLK_CGROUP | 125 | #ifdef CONFIG_DEBUG_BLK_CGROUP |
122 | /* Time not charged to this cgroup */ | 126 | /* Time not charged to this cgroup */ |
123 | uint64_t unaccounted_time; | 127 | uint64_t unaccounted_time; |