sched/fair: Fix open-coded numa_nearest_node()
authorYury Norov <yury.norov@gmail.com>
Sat, 19 Aug 2023 14:12:34 +0000 (07:12 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 15 Sep 2023 11:48:10 +0000 (13:48 +0200)
commitd1db9fb432d50b0eecdfdd85d17cc15a59cc093b
tree47f0754f44ce59c0f9f72ede2ca06c7e2f654d1f
parentb1f099b1cf51d553c510c6c8141c27d9ba7ea1fe
sched/fair: Fix open-coded numa_nearest_node()

task_numa_placement() searches for a nearest node to migrate by calling
for_each_node_state(). Now that we have numa_nearest_node(), switch to
using it.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Mel Gorman <mgorman@suse.de>
Link: https://lore.kernel.org/r/20230819141239.287290-3-yury.norov@gmail.com
kernel/sched/fair.c