commit | 6b4f546a8ce324547c707a5c522d136645d75a92 | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Fri Dec 14 14:36:07 2012 -0800 |
committer | Tejun Heo <tj@kernel.org> | Fri Dec 14 14:36:07 2012 -0800 |
tree | dc67f651ed4b152e9cde25252785bb5b245c66e5 | |
parent | 4cc8109b937b736b77116b231ce021cf4abe7b46 [diff] |
blkcg: implement blkg_prfill_[rw]stat_recursive() blkg_prfill_[rw]stat_recursive() collect the specified [rw]stats from the target policy_data and its descendants and print it. They can be used to make stat printing hierarchical. blkg_for_each_descendant_pre() and blkg_[rw]stat_collect() are added to implement the new prfill functions. While at it, function comment is added to __blkg_lookup() which is now also used by the for_each macro. Signed-off-by: Tejun Heo <tj@kernel.org>