diff options
| author | Baoquan He <[email protected]> | 2024-03-26 06:11:30 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-04-26 03:56:17 +0000 |
| commit | bb8ea62daa7cfd634d1a43815666948311074d0c (patch) | |
| tree | a7cbf57d5a7e193b536ca715c9e0a1affb695181 /mm/mm_init.c | |
| parent | mm: make __absent_pages_in_range() as static (diff) | |
| download | kernel-bb8ea62daa7cfd634d1a43815666948311074d0c.tar.gz kernel-bb8ea62daa7cfd634d1a43815666948311074d0c.zip | |
mm/page_alloc.c: remove unneeded codes in !NUMA version of build_zonelists()
When CONFIG_NUMA=n, MAX_NUMNODES is always 1 because Kconfig item
NODES_SHIFT depends on NUMA. So in !NUMA version of build_zonelists(), no
need to bother with the two for loop because code execution won't enter
them ever.
Here, remove those unneeded codes in !NUMA version of build_zonelists().
[[email protected]: remove unused locals]
Link: https://lkml.kernel.org/r/ZgQL1WOf9K88nLpQ@MiWiFi-R3L-srv
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Baoquan He <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: "Mike Rapoport (IBM)" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/mm_init.c')
0 files changed, 0 insertions, 0 deletions
