]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
abstraction-map.c: increase the column width to 100
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 30 Jun 2022 07:33:11 +0000 (13:03 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 11 Jul 2022 17:09:22 +0000 (11:09 -0600)
100 column width is more comfortable to read over 80 columns, lets
increase it.  This patch, also introduced/removes empty lines across
the file, making it more readable.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/abstraction-map.c

index f74aadb242c92a23e0789ef51008a7303c2c64a7..1735e364ea7bc4e40dfc7022cfaab498eddb3c00 100644 (file)
@@ -26,10 +26,8 @@ const struct cgroup_abstraction_map cgroup_v1_to_v2_map[] = {
        {cgroup_convert_unmappable, "cpu.stat", NULL, "cpu.stat", NULL},
 
        /* cpuset controller */
-       {cgroup_convert_name_only, "cpuset.effective_cpus", NULL,
-               "cpuset.cpus.effective", NULL},
-       {cgroup_convert_name_only, "cpuset.effective_mems", NULL,
-               "cpuset.mems.effective", NULL},
+       {cgroup_convert_name_only, "cpuset.effective_cpus", NULL, "cpuset.cpus.effective", NULL},
+       {cgroup_convert_name_only, "cpuset.effective_mems", NULL, "cpuset.mems.effective", NULL},
        {cgroup_convert_passthrough, "cpuset.cpus", NULL, "cpuset.cpus", NULL},
        {cgroup_convert_passthrough, "cpuset.mems", NULL, "cpuset.mems", NULL},
        {cgroup_convert_cpuset_to_partition, "cpuset.cpu_exclusive", NULL,
@@ -44,8 +42,7 @@ const struct cgroup_abstraction_map cgroup_v1_to_v2_map[] = {
        {cgroup_convert_unmappable, "cpuset.sched_load_balance", NULL, NULL, NULL},
        {cgroup_convert_unmappable, "cpuset.sched_relax_domain_level", NULL, NULL, NULL},
 };
-const int cgroup_v1_to_v2_map_sz = sizeof(cgroup_v1_to_v2_map) /
-                                  sizeof(cgroup_v1_to_v2_map[0]);
+const int cgroup_v1_to_v2_map_sz = sizeof(cgroup_v1_to_v2_map) / sizeof(cgroup_v1_to_v2_map[0]);
 
 const struct cgroup_abstraction_map cgroup_v2_to_v1_map[] = {
        /* cpu controller */
@@ -55,14 +52,11 @@ const struct cgroup_abstraction_map cgroup_v2_to_v1_map[] = {
        {cgroup_convert_unmappable, "cpu.stat", NULL, "cpu.stat", NULL},
 
        /* cpuset controller */
-       {cgroup_convert_name_only, "cpuset.cpus.effective", NULL,
-               "cpuset.effective_cpus", NULL},
-       {cgroup_convert_name_only, "cpuset.mems.effective", NULL,
-               "cpuset.effective_mems", NULL},
+       {cgroup_convert_name_only, "cpuset.cpus.effective", NULL, "cpuset.effective_cpus", NULL},
+       {cgroup_convert_name_only, "cpuset.mems.effective", NULL, "cpuset.effective_mems", NULL},
        {cgroup_convert_passthrough, "cpuset.cpus", NULL, "cpuset.cpus", NULL},
        {cgroup_convert_passthrough, "cpuset.mems", NULL, "cpuset.mems", NULL},
        {cgroup_convert_cpuset_to_exclusive, "cpuset.cpus.partition", NULL,
                "cpuset.cpu_exclusive", NULL},
 };
-const int cgroup_v2_to_v1_map_sz = sizeof(cgroup_v2_to_v1_map) /
-                                  sizeof(cgroup_v2_to_v1_map[0]);
+const int cgroup_v2_to_v1_map_sz = sizeof(cgroup_v2_to_v1_map) / sizeof(cgroup_v2_to_v1_map[0]);