]> Pileus Git - ~andy/linux/commit
cgroup: convert cgroupfs_root flag bits to masks and add CGRP_ prefix
authorTejun Heo <tj@kernel.org>
Mon, 15 Apr 2013 03:15:25 +0000 (20:15 -0700)
committerTejun Heo <tj@kernel.org>
Mon, 15 Apr 2013 03:15:25 +0000 (20:15 -0700)
commit9343862945fdd3dd5cb7648bb24cabe40faa9ad9
treeeec00bc0446ff00699dd9a4e3128d888aec93f91
parentda1f296fd2bfd5ad3c53d72a1ece593e821cf374
cgroup: convert cgroupfs_root flag bits to masks and add CGRP_ prefix

There's no reason to be using bitops, which tends to be more
cumbersome, to handle root flags.  Convert them to masks.  Also, as
they'll be moved to include/linux/cgroup.h and it's generally a good
idea, add CGRP_ prefix.

Note that flags are assigned from (1 << 1).  The first bit will be
used by a flag which will be added soon.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Li Zefan <lizefan@huawei.com>
kernel/cgroup.c