Skip to content

Commit aee4faa

Browse files
Lai Jiangshantorvalds
authored andcommitted
kthread: use N_MEMORY instead N_HIGH_MEMORY
N_HIGH_MEMORY stands for the nodes that has normal or high memory. N_MEMORY stands for the nodes that has any memory. The code here need to handle with the nodes which have memory, we should use N_MEMORY instead. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> Cc: Christoph Lameter <cl@linux.com> Cc: Hillf Danton <dhillf@gmail.com> Cc: Lin Feng <linfeng@cn.fujitsu.com> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a47b53c commit aee4faa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/kthread.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ int kthreadd(void *unused)
428428
set_task_comm(tsk, "kthreadd");
429429
ignore_signals(tsk);
430430
set_cpus_allowed_ptr(tsk, cpu_all_mask);
431-
set_mems_allowed(node_states[N_HIGH_MEMORY]);
431+
set_mems_allowed(node_states[N_MEMORY]);
432432

433433
current->flags |= PF_NOFREEZE;
434434

0 commit comments

Comments
 (0)