cgroup: misc changes
authorTejun Heo <tj@kernel.org>
Fri, 11 Aug 2017 12:49:01 +0000 (05:49 -0700)
committerTejun Heo <tj@kernel.org>
Fri, 11 Aug 2017 12:49:01 +0000 (05:49 -0700)
commit3e48930cc74f0c212ee1838f89ad0ca7fcf2fea1
tree404751a5e18ffd2e010f0ed5fda21dc3d6d2b73a
parent13d82fb77abb9625f3ca74f5c4cbedde0f412f01
cgroup: misc changes

Misc trivial changes to prepare for future changes.  No functional
difference.

* Expose cgroup_get(), cgroup_tryget() and cgroup_parent().

* Implement task_dfl_cgroup() which dereferences css_set->dfl_cgrp.

* Rename cgroup_stats_show() to cgroup_stat_show() for consistency
  with the file name.

Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/cgroup.h
kernel/cgroup/cgroup.c