Commit 19fc8a89 authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by Tejun Heo
Browse files

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: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent f71bfbe1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1335,6 +1335,7 @@ static int __init cgroup_no_v1(char *str)
				continue;

			cgroup_no_v1_mask |= 1 << i;
			break;
		}
	}
	return 1;