css_task_iter stores pointer to head of each iterable list, this dates back to commit 0f0a2b4fa621 ("cgroup: reorganize css_task_iter") when we did not store cur_cset. Let us utilize list heads directly in cur_cset and streamline css_task_iter_advance_css_set a bit. This is no intentional function change.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -58,9 +58,6 @@ struct css_task_iter { · 57 unmodified lines | ||
| 58 | 58 | struct list_head *tcset_head; |
| 59 | 59 | |
| 60 | 60 | struct list_head *task_pos; |
| 61 | − struct list_head *tasks_head; | |
| 62 | − struct list_head *mg_tasks_head; | |
| 63 | − struct list_head *dying_tasks_head; | |
| 64 | 61 | |
| 65 | 62 | struct list_head *cur_tasks_head; |
| 66 | 63 | struct css_set *cur_cset; |