OSDN Git Service

cgroup: Rename stat to rstat
authorTejun Heo <tj@kernel.org>
Thu, 26 Apr 2018 21:29:04 +0000 (14:29 -0700)
committerTejun Heo <tj@kernel.org>
Thu, 26 Apr 2018 21:29:04 +0000 (14:29 -0700)
commitc58632b3631cb222da41d9dc0dd39e106c1eafd0
treebd8be17287250d1e79e7076ca310ca7912c854a7
parenta5c2b93f79ef7d746a3cd2c1bd66833286f9be70
cgroup: Rename stat to rstat

stat is too generic a name and ends up causing subtle confusions.
It'll be made generic so that controllers can plug into it, which will
make the problem worse.  Let's rename it to something more specific -
cgroup_rstat for cgroup recursive stat.

This patch does the following renames.  No other changes.

* cpu_stat -> rstat_cpu
* stat -> rstat
* ?cstat -> ?rstatc

Note that the renames are selective.  The unrenamed are the ones which
implement basic resource statistics on top of rstat.  This will be
further cleaned up in the following patches.

Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/cgroup-defs.h
kernel/cgroup/cgroup-internal.h
kernel/cgroup/cgroup.c
kernel/cgroup/rstat.c