]> git.baikalelectronics.ru Git - kernel.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)
commit646f6b1da4fbbe96e2b0feca03155fa3ea6883bc
tree8e4c8511c940f844d555c3791fce13bbda1f7d73
parent45025bebeda022ce0737caa8c1f5311e0e312e1e
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