summaryrefslogtreecommitdiffstats
path: root/mm/compaction.c
diff options
context:
space:
mode:
authorBaoquan He2019-05-14 02:17:35 +0200
committerLinus Torvalds2019-05-14 18:47:46 +0200
commitd3ba3ae19751e476b0840a0c9a673a5766fa3219 (patch)
treebc991f7623e6057e3f8dea55b81e05da3f877ef8 /mm/compaction.c
parentmm,memory_hotplug: drop redundant hugepage_migration_supported check (diff)
downloadkernel-qcow2-linux-d3ba3ae19751e476b0840a0c9a673a5766fa3219.tar.gz
kernel-qcow2-linux-d3ba3ae19751e476b0840a0c9a673a5766fa3219.tar.xz
kernel-qcow2-linux-d3ba3ae19751e476b0840a0c9a673a5766fa3219.zip
mm/memory_hotplug.c: fix the wrong usage of N_HIGH_MEMORY
In node_states_check_changes_online(), N_HIGH_MEMORY is used to substitute ZONE_HIGHMEM directly. This is not right. N_HIGH_MEMORY is to mark the memory state of node. Here zone index is checked, which should be compared with 'ZONE_HIGHMEM' accordingly. Replace it with ZONE_HIGHMEM. This is a code cleanup - no known runtime effects. Link: http://lkml.kernel.org/r/20190320080732.14933-1-bhe@redhat.com Fixes: 8efe33f40f3e ("mm/memory_hotplug.c: simplify node_states_check_changes_online") Signed-off-by: Baoquan He <bhe@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Acked-by: Michal Hocko <mhocko@suse.com> Reviewed-by: Oscar Salvador <osalvador@suse.de> Cc: Wei Yang <richard.weiyang@gmail.com> Cc: Mike Rapoport <rppt@linux.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/compaction.c')
0 files changed, 0 insertions, 0 deletions