mm/vmscan: don't use NUMA_NO_NODE as indicator of page on different node
authorWei Yang <richard.weiyang@gmail.com>
Fri, 13 May 2022 03:23:00 +0000 (20:23 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:14 +0000 (07:20 -0700)
commited657e5568c5fc877c517b654d65fbdaeb628539
tree8c8f21e931e80a05b80e85d7af8f547f37d57adb
parent1ae65e2749b0a3d236fc17d0eca5ea5f6f2c0032
mm/vmscan: don't use NUMA_NO_NODE as indicator of page on different node

Now we are sure there is at least one page on page_list, so it is safe to
get the nid of it.  This means it is not necessary to use NUMA_NO_NODE as
an indicator for the beginning of iteration or a page on different node.

Link: https://lkml.kernel.org/r/20220429014426.29223-2-richard.weiyang@gmail.com
Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c