diff options
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r-- | block/cfq-iosched.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index db4a1a52c3d9..e34e142b6dbb 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -2490,7 +2490,7 @@ static void cfq_setup_merge(struct cfq_queue *cfqq, struct cfq_queue *new_cfqq) | |||
2490 | } | 2490 | } |
2491 | } | 2491 | } |
2492 | 2492 | ||
2493 | static enum wl_type_t cfq_choose_wl(struct cfq_data *cfqd, | 2493 | static enum wl_type_t cfq_choose_wl_type(struct cfq_data *cfqd, |
2494 | struct cfq_group *cfqg, enum wl_class_t wl_class) | 2494 | struct cfq_group *cfqg, enum wl_class_t wl_class) |
2495 | { | 2495 | { |
2496 | struct cfq_queue *queue; | 2496 | struct cfq_queue *queue; |
@@ -2513,7 +2513,8 @@ static enum wl_type_t cfq_choose_wl(struct cfq_data *cfqd, | |||
2513 | return cur_best; | 2513 | return cur_best; |
2514 | } | 2514 | } |
2515 | 2515 | ||
2516 | static void choose_service_tree(struct cfq_data *cfqd, struct cfq_group *cfqg) | 2516 | static void |
2517 | choose_wl_class_and_type(struct cfq_data *cfqd, struct cfq_group *cfqg) | ||
2517 | { | 2518 | { |
2518 | unsigned slice; | 2519 | unsigned slice; |
2519 | unsigned count; | 2520 | unsigned count; |
@@ -2551,7 +2552,7 @@ static void choose_service_tree(struct cfq_data *cfqd, struct cfq_group *cfqg) | |||
2551 | 2552 | ||
2552 | new_workload: | 2553 | new_workload: |
2553 | /* otherwise select new workload type */ | 2554 | /* otherwise select new workload type */ |
2554 | cfqd->serving_wl_type = cfq_choose_wl(cfqd, cfqg, | 2555 | cfqd->serving_wl_type = cfq_choose_wl_type(cfqd, cfqg, |
2555 | cfqd->serving_wl_class); | 2556 | cfqd->serving_wl_class); |
2556 | st = st_for(cfqg, cfqd->serving_wl_class, cfqd->serving_wl_type); | 2557 | st = st_for(cfqg, cfqd->serving_wl_class, cfqd->serving_wl_type); |
2557 | count = st->count; | 2558 | count = st->count; |
@@ -2621,7 +2622,7 @@ static void cfq_choose_cfqg(struct cfq_data *cfqd) | |||
2621 | } else | 2622 | } else |
2622 | cfqd->workload_expires = jiffies - 1; | 2623 | cfqd->workload_expires = jiffies - 1; |
2623 | 2624 | ||
2624 | choose_service_tree(cfqd, cfqg); | 2625 | choose_wl_class_and_type(cfqd, cfqg); |
2625 | } | 2626 | } |
2626 | 2627 | ||
2627 | /* | 2628 | /* |