aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--block/cfq-iosched.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index d1d0cb235cd2..dbd0207928fb 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -460,22 +460,6 @@ CFQ_CFQQ_FNS(deep);
460CFQ_CFQQ_FNS(wait_busy); 460CFQ_CFQQ_FNS(wait_busy);
461#undef CFQ_CFQQ_FNS 461#undef CFQ_CFQQ_FNS
462 462
463static inline struct cfq_group *pd_to_cfqg(struct blkg_policy_data *pd)
464{
465 return pd ? container_of(pd, struct cfq_group, pd) : NULL;
466}
467
468static struct cfq_group_data
469*cpd_to_cfqgd(struct blkcg_policy_data *cpd)
470{
471 return cpd ? container_of(cpd, struct cfq_group_data, pd) : NULL;
472}
473
474static inline struct blkcg_gq *cfqg_to_blkg(struct cfq_group *cfqg)
475{
476 return pd_to_blkg(&cfqg->pd);
477}
478
479#if defined(CONFIG_CFQ_GROUP_IOSCHED) && defined(CONFIG_DEBUG_BLK_CGROUP) 463#if defined(CONFIG_CFQ_GROUP_IOSCHED) && defined(CONFIG_DEBUG_BLK_CGROUP)
480 464
481/* cfqg stats flags */ 465/* cfqg stats flags */
@@ -620,6 +604,22 @@ static inline void cfqg_stats_update_avg_queue_size(struct cfq_group *cfqg) { }
620 604
621#ifdef CONFIG_CFQ_GROUP_IOSCHED 605#ifdef CONFIG_CFQ_GROUP_IOSCHED
622 606
607static inline struct cfq_group *pd_to_cfqg(struct blkg_policy_data *pd)
608{
609 return pd ? container_of(pd, struct cfq_group, pd) : NULL;
610}
611
612static struct cfq_group_data
613*cpd_to_cfqgd(struct blkcg_policy_data *cpd)
614{
615 return cpd ? container_of(cpd, struct cfq_group_data, pd) : NULL;
616}
617
618static inline struct blkcg_gq *cfqg_to_blkg(struct cfq_group *cfqg)
619{
620 return pd_to_blkg(&cfqg->pd);
621}
622
623static struct blkcg_policy blkcg_policy_cfq; 623static struct blkcg_policy blkcg_policy_cfq;
624 624
625static inline struct cfq_group *blkg_to_cfqg(struct blkcg_gq *blkg) 625static inline struct cfq_group *blkg_to_cfqg(struct blkcg_gq *blkg)