Skip to content

Commit 686fa95

Browse files
ytcoodeakpm00
authored andcommitted
mm/page_alloc: remove the incorrect and misleading comment
The comment removed in this patch originally belonged to the build_zonelists_in_zone_order() function, which was introduced by commit f0c0b2b ("change zonelist order: zonelist order selection logic"). Later, commit c9bff3e ("mm, page_alloc: rip out ZONELIST_ORDER_ZONE") removed build_zonelists_in_zone_order() but left its comment behind. Subsequently, commit 9d3be21 ("mm, page_alloc: simplify zonelist initialization") moved the node_order variable into build_zonelists(), making the comment originally belonged to build_zonelists_in_zone_order() appear as if it were part of build_zonelists(). Remove this misleading comment. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Yuntao Wang <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 81f804c commit 686fa95

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

mm/page_alloc.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5159,13 +5159,6 @@ static void build_thisnode_zonelists(pg_data_t *pgdat)
51595159
zonerefs->zone_idx = 0;
51605160
}
51615161

5162-
/*
5163-
* Build zonelists ordered by zone and nodes within zones.
5164-
* This results in conserving DMA zone[s] until all Normal memory is
5165-
* exhausted, but results in overflowing to remote node while memory
5166-
* may still exist in local DMA zone.
5167-
*/
5168-
51695162
static void build_zonelists(pg_data_t *pgdat)
51705163
{
51715164
static int node_order[MAX_NUMNODES];

0 commit comments

Comments
 (0)