]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cgroup: make flags and subsys_masks unsigned int
authorTejun Heo <tj@kernel.org>
Sun, 4 May 2014 19:09:13 +0000 (15:09 -0400)
committerTejun Heo <tj@kernel.org>
Sun, 4 May 2014 19:09:13 +0000 (15:09 -0400)
commit69dfa00ccb72a37f3810687ca110e5a8154c6eed
tree8e4c8511c940f844d555c3791fce13bbda1f7d73
parented3d261b53f51c9505822d757d1800c79fb68788
cgroup: make flags and subsys_masks unsigned int

There's no reason to use atomic bitops for cgroup_subsys_state->flags,
cgroup_root->flags and various subsys_masks.  This patch updates those
to use bitwise and/or operations instead and converts them form
unsigned long to unsigned int.

This makes the fields occupy (marginally) smaller space and makes it
clear that they don't require atomicity.

This patch doesn't cause any behavior difference.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
include/linux/cgroup.h
kernel/cgroup.c