cgroup: replace error handling in cgroup_init() with WARN_ON()s
authorTejun Heo <tj@kernel.org>
Thu, 15 Oct 2015 21:00:43 +0000 (17:00 -0400)
committerTejun Heo <tj@kernel.org>
Thu, 15 Oct 2015 21:00:43 +0000 (17:00 -0400)
commit035f4f510583193949168c77dc957293df24bd77
treefe5e1d12e1618db770ee41025a55bd29552b44e7
parentafcf6c8b75444382e0f9996157207ebae34a8848
cgroup: replace error handling in cgroup_init() with WARN_ON()s

The init sequence shouldn't fail short of bugs and even when it does
it's better to continue with the rest of initialization and we were
silently ignoring /proc/cgroups creation failure.

Drop the explicit error handling and wrap sysfs_create_mount_point(),
register_filesystem() and proc_create() with WARN_ON()s.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
kernel/cgroup.c