diff options
author | Tejun Heo <tj@kernel.org> | 2014-05-04 21:09:14 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-05-04 21:09:14 +0200 |
commit | ddfcadab35dda6e5bc23ccf1c3055ecb63a71e49 (patch) | |
tree | 68ff0218d96629b63d30a3a91580bff256f93c28 /mm | |
parent | cgroup: use RCU free in create_css() failure path (diff) | |
download | linux-ddfcadab35dda6e5bc23ccf1c3055ecb63a71e49.tar.xz linux-ddfcadab35dda6e5bc23ccf1c3055ecb63a71e49.zip |
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 <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions