summaryrefslogtreecommitdiffstats
path: root/include/linux/cgroup.h
diff options
context:
space:
mode:
authorAristeu Rozanski <aris@redhat.com>2012-08-23 16:53:29 -0400
committerTejun Heo <tj@kernel.org>2012-08-24 15:55:33 -0700
commit13af07df9b7e49f1987cf36aa048dc6c49d0f93d (patch)
treeae726e287583d98c6e3f85a31d574e5d48075861 /include/linux/cgroup.h
parent38f38657444d15e1a8574eae80ed3de9f501737a (diff)
downloadtalos-op-linux-13af07df9b7e49f1987cf36aa048dc6c49d0f93d.tar.gz
talos-op-linux-13af07df9b7e49f1987cf36aa048dc6c49d0f93d.zip
cgroup: revise how we re-populate root directory
When remounting cgroupfs with some subsystems added to it and some removed, cgroup will remove all the files in root directory and then re-popluate it. What I'm doing here is, only remove files which belong to subsystems that are to be unbinded, and only create files for newly-added subsystems. The purpose is to have all other files untouched. This is a preparation for cgroup xattr support. v7: - checkpatch warnings fixed v6: - no changes v5: - no changes v4: - refactored cgroup_clear_directory() to not use cgroup_rm_file() - instead of going thru the list of files, get the file list using the subsystems - use 'subsys_mask' instead of {added,removed}_bits and made cgroup_populate_dir() to match the parameters with cgroup_clear_directory() v3: - refresh patches after recent refactoring Original-patch-by: Li Zefan <lizefan@huawei.com> Cc: Li Zefan <lizefan@huawei.com> Cc: Hugh Dickins <hughd@google.com> Cc: Hillf Danton <dhillf@gmail.com> Cc: Lennart Poettering <lpoetter@redhat.com> Signed-off-by: Li Zefan <lizefan@huawei.com> Signed-off-by: Aristeu Rozanski <aris@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/cgroup.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud