Re: [PATCH next] cgroup/cpuset: Move cpuset_update_flag() to cpuset-v1.c

From: Tejun Heo

Date: Wed Sep 30 2026 - 20:51:46 EST


On Wed, Sep 30, 2026 at 10:31:39AM +0800, Ridong Chen wrote:
> From: Ridong Chen <chenridong@xxxxxxxxxx>
>
> 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, together with its sole helper cpuset1_update_tasks_flags(),
> into cpuset-v1.c so both can go back to being static and drop out of
> cpuset-internal.h.

Applied to cgroup/for-7.4 with the description tweaked to say that
cpuset1_update_tasks_flags() already lives in cpuset-v1.c.

Thanks.

--
tejun