Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

cgroup/cpuset: Remove cpuset_slab_spread_rotor

Since the SLAB implementation was removed in v6.8, so the
cpuset_slab_spread_rotor is no longer used and can be removed.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Xiu Jianfeng and committed by
Tejun Heo
c149c4a4 d72a00a8

-21
-6
include/linux/cpuset.h
··· 113 113 struct pid *pid, struct task_struct *tsk); 114 114 115 115 extern int cpuset_mem_spread_node(void); 116 - extern int cpuset_slab_spread_node(void); 117 116 118 117 static inline int cpuset_do_page_mem_spread(void) 119 118 { ··· 241 242 } 242 243 243 244 static inline int cpuset_mem_spread_node(void) 244 - { 245 - return 0; 246 - } 247 - 248 - static inline int cpuset_slab_spread_node(void) 249 245 { 250 246 return 0; 251 247 }
-1
include/linux/sched.h
··· 1243 1243 /* Sequence number to catch updates: */ 1244 1244 seqcount_spinlock_t mems_allowed_seq; 1245 1245 int cpuset_mem_spread_rotor; 1246 - int cpuset_slab_spread_rotor; 1247 1246 #endif 1248 1247 #ifdef CONFIG_CGROUPS 1249 1248 /* Control Group info protected by css_set_lock: */
-13
kernel/cgroup/cpuset.c
··· 5013 5013 } 5014 5014 5015 5015 /** 5016 - * cpuset_slab_spread_node() - On which node to begin search for a slab page 5017 - */ 5018 - int cpuset_slab_spread_node(void) 5019 - { 5020 - if (current->cpuset_slab_spread_rotor == NUMA_NO_NODE) 5021 - current->cpuset_slab_spread_rotor = 5022 - node_random(&current->mems_allowed); 5023 - 5024 - return cpuset_spread_node(&current->cpuset_slab_spread_rotor); 5025 - } 5026 - EXPORT_SYMBOL_GPL(cpuset_mem_spread_node); 5027 - 5028 - /** 5029 5016 * cpuset_mems_allowed_intersects - Does @tsk1's mems_allowed intersect @tsk2's? 5030 5017 * @tsk1: pointer to task_struct of some task. 5031 5018 * @tsk2: pointer to task_struct of some other task.
-1
kernel/fork.c
··· 2311 2311 #endif 2312 2312 #ifdef CONFIG_CPUSETS 2313 2313 p->cpuset_mem_spread_rotor = NUMA_NO_NODE; 2314 - p->cpuset_slab_spread_rotor = NUMA_NO_NODE; 2315 2314 seqcount_spinlock_init(&p->mems_allowed_seq, &p->alloc_lock); 2316 2315 #endif 2317 2316 #ifdef CONFIG_TRACE_IRQFLAGS