diff options
| author | Chen Ridong <chenridong@huawei.com> | 2025-09-17 06:04:45 +0000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2025-09-17 08:35:28 -1000 |
| commit | bba0ccf829b904e6d1f119d94f01d7209d34ba28 (patch) | |
| tree | 3220ed33d305e677dc86db3f312b414d3f0200bf /kernel | |
| parent | cpuset: move the root cpuset write check earlier (diff) | |
| download | linux-bba0ccf829b904e6d1f119d94f01d7209d34ba28.tar.gz linux-bba0ccf829b904e6d1f119d94f01d7209d34ba28.zip | |
cpuset: remove unused assignment to trialcs->partition_root_state
The trialcs->partition_root_state field is not used during the
configuration of 'cpuset.cpus' or 'cpuset.cpus.exclusive'. Therefore,
the assignment of values to this field can be safely removed.
Signed-off-by: Chen Ridong <chenridong@huawei.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/cgroup/cpuset.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c index 12012ce62777..bea7e6ef5d5d 100644 --- a/kernel/cgroup/cpuset.c +++ b/kernel/cgroup/cpuset.c @@ -2363,7 +2363,6 @@ static int update_cpumask(struct cpuset *cs, struct cpuset *trialcs, * trialcs->effective_xcpus is used as a temporary cpumask * for checking validity of the partition root. */ - trialcs->partition_root_state = PRS_MEMBER; if (!cpumask_empty(trialcs->exclusive_cpus) || is_partition_valid(cs)) compute_effective_exclusive_cpumask(trialcs, NULL, cs); } @@ -2497,7 +2496,6 @@ static int update_exclusive_cpumask(struct cpuset *cs, struct cpuset *trialcs, return 0; if (*buf) { - trialcs->partition_root_state = PRS_MEMBER; /* * Reject the change if there is exclusive CPUs conflict with * the siblings. |
