]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
cgroup: make cgroup_write_event_control() use css_from_dir() instead of __d_cgrp()
authorTejun Heo <tj@kernel.org>
Mon, 26 Aug 2013 22:40:56 +0000 (18:40 -0400)
committerTejun Heo <tj@kernel.org>
Mon, 26 Aug 2013 22:40:56 +0000 (18:40 -0400)
commit7c918cbbd829669bf70ffcc45962d5d992942243
tree32103bb699a0a70e8b81fdbdbad1bdb3c0cf2b25
parent7941cb027dccedec3c047271554ddcf4be2e0697
cgroup: make cgroup_write_event_control() use css_from_dir() instead of __d_cgrp()

cgroup_event will be moved to its only user - memcg.  Replace
__d_cgrp() usage with css_from_dir(), which is already exported.  This
also simplifies the code a bit.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
kernel/cgroup.c