cgroup: remove css_parent()
cgroup in general is moving towards using cgroup_subsys_state as the fundamental structural component and css_parent() was introduced to convert from using cgroup->parent to css->parent. It was quite some time ago and we're moving forward with making css more prominent. This patch drops the trivial wrapper css_parent() and let the users dereference css->parent. While at it, explicitly mark fields of css which are public and immutable. v2: New usage from device_cgroup.c converted. Signed-off-by:Tejun Heo <tj@kernel.org> Acked-by:
Michal Hocko <mhocko@suse.cz> Acked-by:
Neil Horman <nhorman@tuxdriver.com> Acked-by:
"David S. Miller" <davem@davemloft.net> Acked-by:
Li Zefan <lizefan@huawei.com> Cc: Vivek Goyal <vgoyal@redhat.com> Cc: Jens Axboe <axboe@kernel.dk> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Johannes Weiner <hannes@cmpxchg.org>
Showing
- block/blk-cgroup.h 1 addition, 1 deletionblock/blk-cgroup.h
- include/linux/cgroup.h 11 additions, 18 deletionsinclude/linux/cgroup.h
- kernel/cgroup.c 4 additions, 4 deletionskernel/cgroup.c
- kernel/cgroup_freezer.c 1 addition, 1 deletionkernel/cgroup_freezer.c
- kernel/cpuset.c 1 addition, 1 deletionkernel/cpuset.c
- kernel/sched/core.c 1 addition, 1 deletionkernel/sched/core.c
- kernel/sched/cpuacct.c 1 addition, 1 deletionkernel/sched/cpuacct.c
- mm/hugetlb_cgroup.c 1 addition, 1 deletionmm/hugetlb_cgroup.c
- mm/memcontrol.c 7 additions, 7 deletionsmm/memcontrol.c
- net/core/netclassid_cgroup.c 1 addition, 1 deletionnet/core/netclassid_cgroup.c
- net/core/netprio_cgroup.c 1 addition, 1 deletionnet/core/netprio_cgroup.c
- security/device_cgroup.c 4 additions, 4 deletionssecurity/device_cgroup.c
Loading
Please register or sign in to comment