[PATCH 0/6] Cleanups and fixup for page_alloc

From: Miaohe Lin
Date: Mon Aug 30 2021 - 10:10:33 EST


Hi all,
This series contains cleanups to remove meaningless VM_BUG_ON(), use
helpers to simplify the code and remove obsolete comment. Also we fix
the potential accessing to uninitialized pcp page migratetype and so
on. More details can be found in the respective changelogs. Thanks!

Miaohe Lin (6):
mm/page_alloc.c: remove meaningless VM_BUG_ON() in pindex_to_order()
mm/page_alloc.c: simplify the code by using macro K()
mm/page_alloc.c: remove obsolete comment in free_pcppages_bulk()
mm/page_alloc.c: use helper function zone_spans_pfn()
mm/page_alloc.c: avoid accessing uninitialized pcp page migratetype
mm/page_alloc.c: avoid allocating highmem pages via
alloc_pages_exact_nid()

mm/page_alloc.c | 35 +++++++++++------------------------
1 file changed, 11 insertions(+), 24 deletions(-)

--
2.23.0