]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
cgroup: convert CFTYPE_* flags to enums
authorTejun Heo <tj@kernel.org>
Mon, 24 Jun 2013 22:21:47 +0000 (15:21 -0700)
committerTejun Heo <tj@kernel.org>
Mon, 24 Jun 2013 22:21:47 +0000 (15:21 -0700)
Purely cosmetic.

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

index 6c2ba52fc5d484179b70e21598e7fdecefd7967a..ab27001a2c4a5f5cf94106dd1ea24c5405de1798 100644 (file)
@@ -385,9 +385,11 @@ struct cgroup_map_cb {
  */
 
 /* cftype->flags */
-#define CFTYPE_ONLY_ON_ROOT    (1U << 0)       /* only create on root cg */
-#define CFTYPE_NOT_ON_ROOT     (1U << 1)       /* don't create on root cg */
-#define CFTYPE_INSANE          (1U << 2)       /* don't create if sane_behavior */
+enum {
+       CFTYPE_ONLY_ON_ROOT     = (1 << 0),     /* only create on root cg */
+       CFTYPE_NOT_ON_ROOT      = (1 << 1),     /* don't create on root cg */
+       CFTYPE_INSANE           = (1 << 2),     /* don't create if sane_behavior */
+};
 
 #define MAX_CFTYPE_NAME                64