diff options
| author | Ridong Chen <chenridong@xiaomi.com> | 2026-09-30 10:31:39 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-09-30 13:58:37 -1000 |
| commit | 5a711e2fc9d48e54d7ad4279cfaf4cf8d084452f (patch) | |
| tree | 49e52ad02066ab081577dae398763acf521dbaae /kernel/fail_function.c | |
| parent | 7b00d5eecfa283d301e5f8c89a6b91d858020f3b (diff) | |
| download | linux-next-5a711e2fc9d48e54d7ad4279cfaf4cf8d084452f.tar.gz linux-next-5a711e2fc9d48e54d7ad4279cfaf4cf8d084452f.zip | |
cgroup/cpuset: Move cpuset_update_flag() to cpuset-v1.c
cpuset_update_flag() is only used by the legacy (v1) interface: its
callers are the write handlers of cpuset1_files via cpuset_write_u64(),
and cpuset_css_offline() which invokes it only on the legacy hierarchy
(!cpuset_v2() && is_sched_load_balance()).
Move it into cpuset-v1.c, where its sole helper
cpuset1_update_tasks_flags() already lives, so both can go back to being
static and drop out of cpuset-internal.h. As a result:
- dup_or_alloc_cpuset(), free_cpuset() and validate_change() are now
referenced from cpuset-v1.c, so they lose their static qualifier and
gain declarations in cpuset-internal.h.
- The v2 branch in cpuset_update_flag() that called
cpuset_force_rebuild() is dead on the v1-only call paths and is
dropped; the remaining rebuild_sched_domains_locked() path is kept.
callback_lock, a static in cpuset.c, is taken through the existing
cpuset_callback_lock_irq() wrapper.
- The open-coded "!cpuset_v2() && is_sched_load_balance()" test in
cpuset_css_offline() is wrapped in a new cpuset1_offline_css() helper
(a no-op stub when CONFIG_CPUSETS_V1=n), removing the last
cpuset_v2() branch from that path in cpuset.c.
No functional change intended.
Assisted-by: LLM
Signed-off-by: Ridong Chen <chenridong@xiaomi.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/fail_function.c')
0 files changed, 0 insertions, 0 deletions
