cgroup: start switching to fs_context
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 5 Jan 2019 05:38:03 +0000 (00:38 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 28 Feb 2019 08:29:29 +0000 (03:29 -0500)
commit90129625d9203a917fc1d3e4768976ba90d71b44
tree297cd4933c7fb8a450bfcd30c6649882a64cff97
parent935c6912b198f60a812b7dada21027b5aac7c461
cgroup: start switching to fs_context

Unfortunately, cgroup is tangled into kernfs infrastructure.
To avoid converting all kernfs-based filesystems at once,
we need to untangle the remount part of things, instead of
having it go through kernfs_sop_remount_fs().  Fortunately,
it's not hard to do.

This commit just gets cgroup/cgroup1 to use fs_context to
deliver options on mount and remount paths.  Parsing those
is going to be done in the next commits; for now we do
pretty much what legacy case does.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/cgroup/cgroup-internal.h
kernel/cgroup/cgroup-v1.c
kernel/cgroup/cgroup.c