diff options
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r-- | block/blk-cgroup.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index 855538630300..ae6969a7ffd4 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h | |||
@@ -291,6 +291,7 @@ struct blkcg_gq *__blkg_lookup(struct blkcg *blkcg, struct request_queue *q, | |||
291 | * read locked. If called under either blkcg or queue lock, the iteration | 291 | * read locked. If called under either blkcg or queue lock, the iteration |
292 | * is guaranteed to include all and only online blkgs. The caller may | 292 | * is guaranteed to include all and only online blkgs. The caller may |
293 | * update @pos_css by calling css_rightmost_descendant() to skip subtree. | 293 | * update @pos_css by calling css_rightmost_descendant() to skip subtree. |
294 | * @p_blkg is included in the iteration and the first node to be visited. | ||
294 | */ | 295 | */ |
295 | #define blkg_for_each_descendant_pre(d_blkg, pos_css, p_blkg) \ | 296 | #define blkg_for_each_descendant_pre(d_blkg, pos_css, p_blkg) \ |
296 | css_for_each_descendant_pre((pos_css), &(p_blkg)->blkcg->css) \ | 297 | css_for_each_descendant_pre((pos_css), &(p_blkg)->blkcg->css) \ |
@@ -304,7 +305,8 @@ struct blkcg_gq *__blkg_lookup(struct blkcg *blkcg, struct request_queue *q, | |||
304 | * @p_blkg: target blkg to walk descendants of | 305 | * @p_blkg: target blkg to walk descendants of |
305 | * | 306 | * |
306 | * Similar to blkg_for_each_descendant_pre() but performs post-order | 307 | * Similar to blkg_for_each_descendant_pre() but performs post-order |
307 | * traversal instead. Synchronization rules are the same. | 308 | * traversal instead. Synchronization rules are the same. @p_blkg is |
309 | * included in the iteration and the last node to be visited. | ||
308 | */ | 310 | */ |
309 | #define blkg_for_each_descendant_post(d_blkg, pos_css, p_blkg) \ | 311 | #define blkg_for_each_descendant_post(d_blkg, pos_css, p_blkg) \ |
310 | css_for_each_descendant_post((pos_css), &(p_blkg)->blkcg->css) \ | 312 | css_for_each_descendant_post((pos_css), &(p_blkg)->blkcg->css) \ |