diff options
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r-- | block/blk-cgroup.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index 8e5863e900bf..b6802c46d68f 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h | |||
@@ -209,9 +209,7 @@ static inline struct blkcg *bio_blkcg(struct bio *bio) | |||
209 | */ | 209 | */ |
210 | static inline struct blkcg *blkcg_parent(struct blkcg *blkcg) | 210 | static inline struct blkcg *blkcg_parent(struct blkcg *blkcg) |
211 | { | 211 | { |
212 | struct cgroup *pcg = blkcg->css.cgroup->parent; | 212 | return css_to_blkcg(css_parent(&blkcg->css)); |
213 | |||
214 | return pcg ? cgroup_to_blkcg(pcg) : NULL; | ||
215 | } | 213 | } |
216 | 214 | ||
217 | /** | 215 | /** |