From: Tejun Heo Date: Fri, 16 May 2014 17:22:48 +0000 (-0400) Subject: device_cgroup: remove direct access to cgroup->children X-Git-Tag: omap-for-v3.16/fixes-against-rc1~81^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5877019d97ab827b808e8759c71ef8d31490907a;p=pandora-kernel.git 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 Acked-by: Aristeu Rozanski Acked-by: Serge Hallyn Acked-by: Li Zefan --- Reading git-diff-tree failed