device_cgroup: use css_has_online_children() instead of has_children()
devcgroup_update_access() wants to know whether there are child cgroups which are online and visible to userland and has_children() may return false positive. Replace it with css_has_online_children(). Signed-off-by: NTejun Heo <tj@kernel.org> Acked-by: NAristeu Rozanski <aris@redhat.com> Acked-by: NSerge Hallyn <serge.hallyn@ubuntu.com> Acked-by: NLi Zefan <lizefan@huawei.com>
Showing
想要评论请 注册 或 登录