aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorLin Feng <[email protected]>2022-06-21 17:23:58 +0800
committerTejun Heo <[email protected]>2022-06-27 18:09:21 +0900
commitd75cd55ae2dedeee5382bb48832c322673b9781c (patch)
treed8f8a82652f8f02c084cfed76dec14263702ebca /scripts/gdb/linux/utils.py
parente210a89f5b07680fe21d21e846e6817346c5ba3b (diff)
cgroup.c: remove redundant check for mixable cgroup in cgroup_migrate_vet_dst
We have: int cgroup_migrate_vet_dst(struct cgroup *dst_cgrp) { ... /* mixables don't care */ if (cgroup_is_mixable(dst_cgrp)) return 0; /* * If @dst_cgrp is already or can become a thread root or is * threaded, it doesn't matter. */ if (cgroup_can_be_thread_root(dst_cgrp) || cgroup_is_threaded(dst_cgrp)) return 0; ... } but in fact the entry of cgroup_can_be_thread_root() covers case that checking cgroup_is_mixable() as following: static bool cgroup_can_be_thread_root(struct cgroup *cgrp) { /* mixables don't care */ if (cgroup_is_mixable(cgrp)) return true; ... } so explicitly checking in cgroup_migrate_vet_dst is unnecessary. Signed-off-by: Lin Feng <[email protected]> Reviewed-by: Michal Koutný <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions