diff options
author | Tejun Heo <tj@kernel.org> | 2013-01-09 11:05:12 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-01-09 11:05:12 -0500 |
commit | b276a876a014c5fa58a16f247c0933f6c42112e3 (patch) | |
tree | c49f85e03d11296683ed938864bd823cdeaa614f /block/blk-cgroup.h | |
parent | d02f7aa8dce8166dbbc515ce393912aa45e6b8a6 (diff) |
blkcg: add blkg_policy_data->plid
Add pd->plid so that the policy a pd belongs to can be identified
easily. This will be used to implement hierarchical blkg_[rw]stats.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r-- | block/blk-cgroup.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index 24462258200e..40f5b9768aac 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h | |||
@@ -81,8 +81,9 @@ struct blkg_rwstat { | |||
81 | * beginning and pd_size can't be smaller than pd. | 81 | * beginning and pd_size can't be smaller than pd. |
82 | */ | 82 | */ |
83 | struct blkg_policy_data { | 83 | struct blkg_policy_data { |
84 | /* the blkg this per-policy data belongs to */ | 84 | /* the blkg and policy id this per-policy data belongs to */ |
85 | struct blkcg_gq *blkg; | 85 | struct blkcg_gq *blkg; |
86 | int plid; | ||
86 | 87 | ||
87 | /* used during policy activation */ | 88 | /* used during policy activation */ |
88 | struct list_head alloc_node; | 89 | struct list_head alloc_node; |