mm/page_alloc: integrate classzone_idx and high_zoneidx
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>
Wed, 3 Jun 2020 22:59:01 +0000 (15:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 4 Jun 2020 03:09:44 +0000 (20:09 -0700)
commit97a225e69a1f880886f33d2e65a7ace13f152caa
tree5827c459fb9543eeb1ffec6b40edabf5f09e80ab
parent3334a45eb9e2bb040c880ef65e1d72357a0a008b
mm/page_alloc: integrate classzone_idx and high_zoneidx

classzone_idx is just different name for high_zoneidx now.  So, integrate
them and add some comment to struct alloc_context in order to reduce
future confusion about the meaning of this variable.

The accessor, ac_classzone_idx() is also removed since it isn't needed
after integration.

In addition to integration, this patch also renames high_zoneidx to
highest_zoneidx since it represents more precise meaning.

Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Baoquan He <bhe@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Ye Xiaolong <xiaolong.ye@intel.com>
Link: http://lkml.kernel.org/r/1587095923-7515-3-git-send-email-iamjoonsoo.kim@lge.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
12 files changed:
include/linux/compaction.h
include/linux/mmzone.h
include/trace/events/compaction.h
include/trace/events/vmscan.h
mm/compaction.c
mm/internal.h
mm/memory_hotplug.c
mm/oom_kill.c
mm/page_alloc.c
mm/slab.c
mm/slub.c
mm/vmscan.c