You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
+2
-2
@@ -536,7 +536,7 @@ static void cfqg_stats_set_start_empty_time(struct cfq_group *cfqg)
|
||||
{
|
||||
struct cfqg_stats *stats = &cfqg->stats;
|
||||
|
||||
if (blkg_rwstat_sum(&stats->queued))
|
||||
if (blkg_rwstat_total(&stats->queued))
|
||||
return;
|
||||
|
||||
/*
|
||||
@@ -580,7 +580,7 @@ static void cfqg_stats_update_avg_queue_size(struct cfq_group *cfqg)
|
||||
struct cfqg_stats *stats = &cfqg->stats;
|
||||
|
||||
blkg_stat_add(&stats->avg_queue_size_sum,
|
||||
blkg_rwstat_sum(&stats->queued));
|
||||
blkg_rwstat_total(&stats->queued));
|
||||
blkg_stat_add(&stats->avg_queue_size_samples, 1);
|
||||
cfqg_stats_update_group_wait_time(stats);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user