cgroup: make css_tryget_online_from_dir() also recognize cgroup2 fs
authorTejun Heo <tj@kernel.org>
Tue, 23 Feb 2016 15:00:51 +0000 (10:00 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 23 Feb 2016 15:00:51 +0000 (10:00 -0500)
commitf17fc25f2b4f4bd8edafe36af6d7379eb9db27a0
tree06e59c3d41937f7be60b555bf8141a0bed789337
parentb38e42e962dbc2fbc3839ce70750881db7c9277e
cgroup: make css_tryget_online_from_dir() also recognize cgroup2 fs

The function currently returns -EBADF for a directory on the default
hierarchy.  Make it also recognize cgroup2_fs_type.  This will be used
for perf_event cgroup2 support.

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