aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--block/blk-cgroup.h4
-rw-r--r--block/cfq-iosched.c17
2 files changed, 10 insertions, 11 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h
index ca0ff7c0ffb6..64392ac76ce8 100644
--- a/block/blk-cgroup.h
+++ b/block/blk-cgroup.h
@@ -27,13 +27,13 @@ enum blkio_policy_id {
27/* Max limits for throttle policy */ 27/* Max limits for throttle policy */
28#define THROTL_IOPS_MAX UINT_MAX 28#define THROTL_IOPS_MAX UINT_MAX
29 29
30#ifdef CONFIG_BLK_CGROUP
31
32/* CFQ specific, out here for blkcg->cfq_weight */ 30/* CFQ specific, out here for blkcg->cfq_weight */
33#define CFQ_WEIGHT_MIN 10 31#define CFQ_WEIGHT_MIN 10
34#define CFQ_WEIGHT_MAX 1000 32#define CFQ_WEIGHT_MAX 1000
35#define CFQ_WEIGHT_DEFAULT 500 33#define CFQ_WEIGHT_DEFAULT 500
36 34
35#ifdef CONFIG_BLK_CGROUP
36
37enum blkg_rwstat_type { 37enum blkg_rwstat_type {
38 BLKG_RWSTAT_READ, 38 BLKG_RWSTAT_READ,
39 BLKG_RWSTAT_WRITE, 39 BLKG_RWSTAT_WRITE,
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index cff8b5ba6208..7a8c3e0ab3a2 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -17,7 +17,7 @@
17#include "blk.h" 17#include "blk.h"
18#include "blk-cgroup.h" 18#include "blk-cgroup.h"
19 19
20static struct blkio_policy_type blkio_policy_cfq; 20static struct blkio_policy_type blkio_policy_cfq __maybe_unused;
21 21
22/* 22/*
23 * tunables 23 * tunables
@@ -541,14 +541,13 @@ static void cfqg_stats_update_avg_queue_size(struct cfq_group *cfqg)
541 541
542#else /* CONFIG_CFQ_GROUP_IOSCHED && CONFIG_DEBUG_BLK_CGROUP */ 542#else /* CONFIG_CFQ_GROUP_IOSCHED && CONFIG_DEBUG_BLK_CGROUP */
543 543
544static void cfqg_stats_set_start_group_wait_time(struct cfq_group *cfqg, 544static inline void cfqg_stats_set_start_group_wait_time(struct cfq_group *cfqg, struct cfq_group *curr_cfqg) { }
545 struct cfq_group *curr_cfqg) { } 545static inline void cfqg_stats_end_empty_time(struct cfqg_stats *stats) { }
546static void cfqg_stats_end_empty_time(struct cfqg_stats *stats) { } 546static inline void cfqg_stats_update_dequeue(struct cfq_group *cfqg) { }
547static void cfqg_stats_update_dequeue(struct cfq_group *cfqg) { } 547static inline void cfqg_stats_set_start_empty_time(struct cfq_group *cfqg) { }
548static void cfqg_stats_set_start_empty_time(struct cfq_group *cfqg) { } 548static inline void cfqg_stats_update_idle_time(struct cfq_group *cfqg) { }
549static void cfqg_stats_update_idle_time(struct cfq_group *cfqg) { } 549static inline void cfqg_stats_set_start_idle_time(struct cfq_group *cfqg) { }
550static void cfqg_stats_set_start_idle_time(struct cfq_group *cfqg) { } 550static inline void cfqg_stats_update_avg_queue_size(struct cfq_group *cfqg) { }
551static void cfqg_stats_update_avg_queue_size(struct cfq_group *cfqg) { }
552 551
553#endif /* CONFIG_CFQ_GROUP_IOSCHED && CONFIG_DEBUG_BLK_CGROUP */ 552#endif /* CONFIG_CFQ_GROUP_IOSCHED && CONFIG_DEBUG_BLK_CGROUP */
554 553