mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-07 09:54:19 +00:00
cgroup: Avoid unnecessary looping in cgroup_no_v1()
No need to continue the for_each_subsys loop after the token matches the name of subsys and cgroup_no_v1_mask is set. Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
f71bfbe1e2
commit
19fc8a8965
@ -1335,6 +1335,7 @@ static int __init cgroup_no_v1(char *str)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
cgroup_no_v1_mask |= 1 << i;
|
cgroup_no_v1_mask |= 1 << i;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user