Commit 8e46452
cpuset: Clean up cpuset_node_allowed
Commit 002f290 ("cpuset: use static key better and convert to new API")
has used __cpuset_node_allowed() instead of cpuset_node_allowed() to check
whether we can allocate on a memory node. Now this function isn't used by
anyone, so we can do the follow things to clean up it.
1. remove unused codes
2. rename __cpuset_node_allowed() to cpuset_node_allowed()
3. update comments in mm/page_alloc.c
Suggested-by: Waiman Long <longman@redhat.com>
Signed-off-by: Haifeng Xu <haifeng.xu@shopee.com>
Acked-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>1 parent 4cdb91b commit 8e46452
3 files changed
Lines changed: 6 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 83 | + | |
91 | 84 | | |
92 | 85 | | |
93 | 86 | | |
94 | | - | |
| 87 | + | |
95 | 88 | | |
96 | 89 | | |
97 | 90 | | |
| |||
223 | 216 | | |
224 | 217 | | |
225 | 218 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | 219 | | |
232 | 220 | | |
233 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3831 | 3831 | | |
3832 | 3832 | | |
3833 | 3833 | | |
3834 | | - | |
| 3834 | + | |
3835 | 3835 | | |
3836 | 3836 | | |
3837 | 3837 | | |
| |||
3870 | 3870 | | |
3871 | 3871 | | |
3872 | 3872 | | |
3873 | | - | |
| 3873 | + | |
3874 | 3874 | | |
3875 | 3875 | | |
3876 | 3876 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4217 | 4217 | | |
4218 | 4218 | | |
4219 | 4219 | | |
4220 | | - | |
| 4220 | + | |
4221 | 4221 | | |
4222 | 4222 | | |
4223 | 4223 | | |
| |||
4891 | 4891 | | |
4892 | 4892 | | |
4893 | 4893 | | |
4894 | | - | |
| 4894 | + | |
4895 | 4895 | | |
4896 | 4896 | | |
4897 | 4897 | | |
| |||
0 commit comments