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/blk-cgroup.h | |
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/blk-cgroup.h')
-rw-r--r-- | block/blk-cgroup.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index 678e89ed8ecb..586c0ac3309a 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h | |||
@@ -461,14 +461,14 @@ static inline struct blkg_rwstat blkg_rwstat_read(struct blkg_rwstat *rwstat) | |||
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 | * @rwstat: blkg_rwstat to read | 465 | * @rwstat: blkg_rwstat to read |
466 | * | 466 | * |
467 | * Return the total count of @rwstat regardless of the IO direction. This | 467 | * Return the total count of @rwstat regardless of the IO direction. This |
468 | * function can be called without synchronization and takes care of u64 | 468 | * function can be called without synchronization and takes care of u64 |
469 | * atomicity. | 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 | struct blkg_rwstat tmp = blkg_rwstat_read(rwstat); | 473 | struct blkg_rwstat tmp = blkg_rwstat_read(rwstat); |
474 | 474 | ||