|
@@ -17,7 +17,7 @@
|
|
#include "blk.h"
|
|
#include "blk.h"
|
|
#include "blk-cgroup.h"
|
|
#include "blk-cgroup.h"
|
|
|
|
|
|
-static struct blkio_policy_type blkio_policy_cfq;
|
|
|
|
|
|
+static struct blkio_policy_type blkio_policy_cfq __maybe_unused;
|
|
|
|
|
|
/*
|
|
/*
|
|
* tunables
|
|
* tunables
|
|
@@ -541,14 +541,13 @@ static void cfqg_stats_update_avg_queue_size(struct cfq_group *cfqg)
|
|
|
|
|
|
#else /* CONFIG_CFQ_GROUP_IOSCHED && CONFIG_DEBUG_BLK_CGROUP */
|
|
#else /* CONFIG_CFQ_GROUP_IOSCHED && CONFIG_DEBUG_BLK_CGROUP */
|
|
|
|
|
|
-static void cfqg_stats_set_start_group_wait_time(struct cfq_group *cfqg,
|
|
|
|
- struct cfq_group *curr_cfqg) { }
|
|
|
|
-static void cfqg_stats_end_empty_time(struct cfqg_stats *stats) { }
|
|
|
|
-static void cfqg_stats_update_dequeue(struct cfq_group *cfqg) { }
|
|
|
|
-static void cfqg_stats_set_start_empty_time(struct cfq_group *cfqg) { }
|
|
|
|
-static void cfqg_stats_update_idle_time(struct cfq_group *cfqg) { }
|
|
|
|
-static void cfqg_stats_set_start_idle_time(struct cfq_group *cfqg) { }
|
|
|
|
-static void cfqg_stats_update_avg_queue_size(struct cfq_group *cfqg) { }
|
|
|
|
|
|
+static inline void cfqg_stats_set_start_group_wait_time(struct cfq_group *cfqg, struct cfq_group *curr_cfqg) { }
|
|
|
|
+static inline void cfqg_stats_end_empty_time(struct cfqg_stats *stats) { }
|
|
|
|
+static inline void cfqg_stats_update_dequeue(struct cfq_group *cfqg) { }
|
|
|
|
+static inline void cfqg_stats_set_start_empty_time(struct cfq_group *cfqg) { }
|
|
|
|
+static inline void cfqg_stats_update_idle_time(struct cfq_group *cfqg) { }
|
|
|
|
+static inline void cfqg_stats_set_start_idle_time(struct cfq_group *cfqg) { }
|
|
|
|
+static inline void cfqg_stats_update_avg_queue_size(struct cfq_group *cfqg) { }
|
|
|
|
|
|
#endif /* CONFIG_CFQ_GROUP_IOSCHED && CONFIG_DEBUG_BLK_CGROUP */
|
|
#endif /* CONFIG_CFQ_GROUP_IOSCHED && CONFIG_DEBUG_BLK_CGROUP */
|
|
|
|
|