Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309260
b: refs/heads/master
c: f48ec1d
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jens Axboe committed Apr 20, 2012
1 parent 257248f commit 40313ee
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5bc4afb1ec6aa562fac4d9aba34d957ee42f5813
refs/heads/master: f48ec1d7885281a9c6cd7779d61f321d1b1fd741
4 changes: 2 additions & 2 deletions trunk/block/blk-cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ enum blkio_policy_id {
/* Max limits for throttle policy */
#define THROTL_IOPS_MAX UINT_MAX

#ifdef CONFIG_BLK_CGROUP

/* CFQ specific, out here for blkcg->cfq_weight */
#define CFQ_WEIGHT_MIN 10
#define CFQ_WEIGHT_MAX 1000
#define CFQ_WEIGHT_DEFAULT 500

#ifdef CONFIG_BLK_CGROUP

enum blkg_rwstat_type {
BLKG_RWSTAT_READ,
BLKG_RWSTAT_WRITE,
Expand Down
17 changes: 8 additions & 9 deletions trunk/block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "blk.h"
#include "blk-cgroup.h"

static struct blkio_policy_type blkio_policy_cfq;
static struct blkio_policy_type blkio_policy_cfq __maybe_unused;

/*
* tunables
Expand Down Expand Up @@ -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 */

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 */

Expand Down

0 comments on commit 40313ee

Please sign in to comment.