summaryrefslogtreecommitdiffstats
path: root/kernel/cgroup.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2014-05-16 13:22:48 -0400
committerTejun Heo <tj@kernel.org>2014-05-16 13:22:48 -0400
commit5877019d97ab827b808e8759c71ef8d31490907a (patch)
treeb7fb8eb3c632b5a64cbf038181e46af5753d42c4 /kernel/cgroup.c
parentea280e7b408ca0dad195ce9836feccdd1dc32131 (diff)
downloadop-kernel-dev-5877019d97ab827b808e8759c71ef8d31490907a.zip
op-kernel-dev-5877019d97ab827b808e8759c71ef8d31490907a.tar.gz
device_cgroup: remove direct access to cgroup->children
Currently, devcg::has_children() directly tests cgroup->children for list emptiness. The field is not a published field and scheduled to go away. In addition, the test isn't strictly correct as devcg should only care about children which are visible to userland. This patch converts has_children() to use css_next_child() instead. The subtle incorrectness is noted and will be dealt with later. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Aristeu Rozanski <aris@redhat.com> Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com> Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'kernel/cgroup.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud