From: Tejun Heo Date: Sun, 4 May 2014 19:09:14 +0000 (-0400) Subject: cgroup: update init_css() into init_and_link_css() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~81^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddfcadab35dda6e5bc23ccf1c3055ecb63a71e49;p=pandora-kernel.git cgroup: update init_css() into init_and_link_css() init_css() takes the cgroup the new css belongs to as an argument and initializes the new css's ->cgroup and ->parent pointers but doesn't acquire the matching reference counts. After the previous patch, create_css() puts init_css() and reference acquisition right next to each other. Let's move reference acquistion into init_css() and rename the function to init_and_link_css(). This makes sense and is easier to follow. This makes the root csses to hold a reference on cgrp_dfl_root.cgrp, which is harmless. Signed-off-by: Tejun Heo Acked-by: Li Zefan --- Reading git-diff-tree failed