diff options
author | Tejun Heo <tj@kernel.org> | 2013-01-09 11:05:12 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-01-09 11:05:12 -0500 |
commit | 4d5e80a76074786a49879ff482a83e72ad634606 (patch) | |
tree | 2bfc06bd5707407c53a295061a2a609af75791d0 /block/cfq-iosched.c | |
parent | f427d909648aa592c9588d0f66b5b457752a0cd1 (diff) |
blkcg: s/blkg_rwstat_sum()/blkg_rwstat_total()/
Rename blkg_rwstat_sum() to blkg_rwstat_total(). sum will be used for
summing up stats from multiple blkgs.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'block/cfq-iosched.c')
-rw-r--r-- | block/cfq-iosched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index e8f31069b379..d43145cc0088 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c | |||
@@ -536,7 +536,7 @@ static void cfqg_stats_set_start_empty_time(struct cfq_group *cfqg) | |||
536 | { | 536 | { |
537 | struct cfqg_stats *stats = &cfqg->stats; | 537 | struct cfqg_stats *stats = &cfqg->stats; |
538 | 538 | ||
539 | if (blkg_rwstat_sum(&stats->queued)) | 539 | if (blkg_rwstat_total(&stats->queued)) |
540 | return; | 540 | return; |
541 | 541 | ||
542 | /* | 542 | /* |
@@ -580,7 +580,7 @@ static void cfqg_stats_update_avg_queue_size(struct cfq_group *cfqg) | |||
580 | struct cfqg_stats *stats = &cfqg->stats; | 580 | struct cfqg_stats *stats = &cfqg->stats; |
581 | 581 | ||
582 | blkg_stat_add(&stats->avg_queue_size_sum, | 582 | blkg_stat_add(&stats->avg_queue_size_sum, |
583 | blkg_rwstat_sum(&stats->queued)); | 583 | blkg_rwstat_total(&stats->queued)); |
584 | blkg_stat_add(&stats->avg_queue_size_samples, 1); | 584 | blkg_stat_add(&stats->avg_queue_size_samples, 1); |
585 | cfqg_stats_update_group_wait_time(stats); | 585 | cfqg_stats_update_group_wait_time(stats); |
586 | } | 586 | } |