OSDN Git Service

cgroup: use cached local variable parent in for loop
authorMiaohe Lin <linmiaohe@huawei.com>
Sat, 15 Jul 2023 03:08:29 +0000 (11:08 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 17 Jul 2023 18:34:41 +0000 (08:34 -1000)
commitfcbb485d9f720b176d7bac0802181901eedddbed
tree128a57210599b3a237a7d4c52989696163c7a800
parentceddae22cd08ba9f52a995cfb573fee89fa4afc4
cgroup: use cached local variable parent in for loop

Use local variable parent to initialize iter tcgrp in for loop so the size
of cgroup.o can be reduced by 64 bytes. No functional change intended.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c