Lines Matching refs:trialcs
1834 static int update_cpumask(struct cpuset *cs, struct cpuset *trialcs, in update_cpumask() argument
1853 cpumask_clear(trialcs->cpus_allowed); in update_cpumask()
1855 retval = cpulist_parse(buf, trialcs->cpus_allowed); in update_cpumask()
1859 if (!cpumask_subset(trialcs->cpus_allowed, in update_cpumask()
1865 if (cpumask_equal(cs->cpus_allowed, trialcs->cpus_allowed)) in update_cpumask()
1871 retval = validate_change(cs, trialcs); in update_cpumask()
1889 cpumask_intersects(trialcs->cpus_allowed, cp->cpus_allowed)) { in update_cpumask()
1906 trialcs->cpus_allowed, &tmp); in update_cpumask()
1909 compute_effective_cpumask(trialcs->effective_cpus, trialcs, in update_cpumask()
1912 cpumask_copy(cs->cpus_allowed, trialcs->cpus_allowed); in update_cpumask()
1921 (cpumask_subset(trialcs->effective_cpus, cs->subparts_cpus) && in update_cpumask()
2164 static int update_nodemask(struct cpuset *cs, struct cpuset *trialcs, in update_nodemask() argument
2185 nodes_clear(trialcs->mems_allowed); in update_nodemask()
2187 retval = nodelist_parse(buf, trialcs->mems_allowed); in update_nodemask()
2191 if (!nodes_subset(trialcs->mems_allowed, in update_nodemask()
2198 if (nodes_equal(cs->mems_allowed, trialcs->mems_allowed)) { in update_nodemask()
2202 retval = validate_change(cs, trialcs); in update_nodemask()
2206 check_insane_mems_config(&trialcs->mems_allowed); in update_nodemask()
2209 cs->mems_allowed = trialcs->mems_allowed; in update_nodemask()
2213 update_nodemasks_hier(cs, &trialcs->mems_allowed); in update_nodemask()
2277 struct cpuset *trialcs; in update_flag() local
2282 trialcs = alloc_trial_cpuset(cs); in update_flag()
2283 if (!trialcs) in update_flag()
2287 set_bit(bit, &trialcs->flags); in update_flag()
2289 clear_bit(bit, &trialcs->flags); in update_flag()
2291 err = validate_change(cs, trialcs); in update_flag()
2296 is_sched_load_balance(trialcs)); in update_flag()
2298 spread_flag_changed = ((is_spread_slab(cs) != is_spread_slab(trialcs)) in update_flag()
2299 || (is_spread_page(cs) != is_spread_page(trialcs))); in update_flag()
2302 cs->flags = trialcs->flags; in update_flag()
2305 if (!cpumask_empty(trialcs->cpus_allowed) && balance_flag_changed) in update_flag()
2311 free_cpuset(trialcs); in update_flag()
2849 struct cpuset *trialcs; in cpuset_write_resmask() local
2882 trialcs = alloc_trial_cpuset(cs); in cpuset_write_resmask()
2883 if (!trialcs) { in cpuset_write_resmask()
2890 retval = update_cpumask(cs, trialcs, buf); in cpuset_write_resmask()
2893 retval = update_nodemask(cs, trialcs, buf); in cpuset_write_resmask()
2900 free_cpuset(trialcs); in cpuset_write_resmask()