]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cgroup: change rstat function signatures from cgroup-based to css-based
authorJP Kobryn <inwardvessel@gmail.com>
Fri, 4 Apr 2025 01:10:48 +0000 (18:10 -0700)
committerTejun Heo <tj@kernel.org>
Fri, 4 Apr 2025 20:06:25 +0000 (10:06 -1000)
commita97915559f5c5ff1972d678b94fd460c72a3b5f2
treea6024fb9076c05066946ed750ee5b552aa4e2e4b
parent845a7245801142bfff411bc84afa8cdbc789562f
cgroup: change rstat function signatures from cgroup-based to css-based

This non-functional change serves as preparation for moving to
subsystem-based rstat trees. To simplify future commits, change the
signatures of existing cgroup-based rstat functions to become css-based and
rename them to reflect that.

Though the signatures have changed, the implementations have not. Within
these functions use the css->cgroup pointer to obtain the associated cgroup
and allow code to function the same just as it did before this patch. At
applicable call sites, pass the subsystem-specific css pointer as an
argument or pass a pointer to cgroup::self if not in subsystem context.

Note that cgroup_rstat_updated_list() and cgroup_rstat_push_children()
are not altered yet since there would be a larger amount of css to
cgroup conversions which may overcomplicate the code at this
intermediate phase.

Signed-off-by: JP Kobryn <inwardvessel@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
block/blk-cgroup.c
include/linux/cgroup-defs.h
include/linux/cgroup.h
kernel/cgroup/cgroup-internal.h
kernel/cgroup/cgroup.c
kernel/cgroup/rstat.c
mm/memcontrol.c
tools/testing/selftests/bpf/progs/cgroup_hierarchical_stats.c