API/cgroups: Fix whitespace
PATCH 1/1 API/cgroups: Fix whitespace
It appears LSP mode with clangd was sneekily inserting spaces.
Signed-off-by Richard Palethorpe <[email protected]>
--- include/tst_cgroup.h | 4 ++-- lib/tst_cgroup.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
include/tst_cgroup.h +2 -2
@@ -25,8 +25,8 @@* case we end up with a set of hierarchies like the follwoing. Where * existing system-manager-created CGroups have been omitted. * -* (V2 Root) (V1 Root 1) ... (V1 Root N) -* | | | +* (V2 Root) (V1 Root 1) ... (V1 Root N) +* | | | * (ltp) (ltp) ... (ltp) * / \ / \ / \ * (drain) (test-n) (drain) (test-n) ... (drain) (test-n)
lib/tst_cgroup.c +3 -3
@@ -123,7 +123,7 @@ struct cgroup_ctrl {const enum cgroup_ctrl_indx ctrl_indx;/* Runtime; hierarchy the controller is attached to */ -struct cgroup_root *ctrl_root; +struct cgroup_root *ctrl_root;/* Runtime; whether we required the controller */ int we_require_it:1; };
@@ -468,7 +468,7 @@ void tst_cgroup_scan(void) } do { - if (strncmp(mnt->mnt_type, "cgroup", 6)) + if (strncmp(mnt->mnt_type, "cgroup", 6)) continue; cgroup_root_scan(mnt->mnt_type, mnt->mnt_dir, mnt->mnt_opts);
@@ -556,7 +556,7 @@ mount:if (!ctrl->ctrl_root)return ; - ctrl->ctrl_root->we_mounted_it =1 ; + ctrl->ctrl_root->we_mounted_it =1 ; ctrl->ctrl_root->mnt_dir.we_created_it = made_dir;if (ctrl->ctrl_indx ==CTRL_MEMORY ) {
Signature · 1 line
2.31.1
PATCH 1/1 API/cgroups: Fix whitespace
Hi Richie,
Quoted 1 line
It appears LSP mode with clangd was sneekily inserting spaces.
This is safe to merge => merged.
Kind regards,
Petr