Commit 4d5e80a76074786a49879ff482a83e72ad634606

Authored by Tejun Heo
1 parent f427d90964

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>

Showing 2 changed files with 4 additions and 4 deletions Side-by-side Diff

... ... @@ -461,14 +461,14 @@
461 461 }
462 462  
463 463 /**
464   - * blkg_rwstat_sum - read the total count of a blkg_rwstat
  464 + * blkg_rwstat_total - read the total count of a blkg_rwstat
465 465 * @rwstat: blkg_rwstat to read
466 466 *
467 467 * Return the total count of @rwstat regardless of the IO direction. This
468 468 * function can be called without synchronization and takes care of u64
469 469 * atomicity.
470 470 */
471   -static inline uint64_t blkg_rwstat_sum(struct blkg_rwstat *rwstat)
  471 +static inline uint64_t blkg_rwstat_total(struct blkg_rwstat *rwstat)
472 472 {
473 473 struct blkg_rwstat tmp = blkg_rwstat_read(rwstat);
474 474  
... ... @@ -536,7 +536,7 @@
536 536 {
537 537 struct cfqg_stats *stats = &cfqg->stats;
538 538  
539   - if (blkg_rwstat_sum(&stats->queued))
  539 + if (blkg_rwstat_total(&stats->queued))
540 540 return;
541 541  
542 542 /*
... ... @@ -580,7 +580,7 @@
580 580 struct cfqg_stats *stats = &cfqg->stats;
581 581  
582 582 blkg_stat_add(&stats->avg_queue_size_sum,
583   - blkg_rwstat_sum(&stats->queued));
  583 + blkg_rwstat_total(&stats->queued));
584 584 blkg_stat_add(&stats->avg_queue_size_samples, 1);
585 585 cfqg_stats_update_group_wait_time(stats);
586 586 }