mbox series

[0/6] Cleanups and fixup for page_alloc

Message ID 20210830141051.64090-1-linmiaohe@huawei.com (mailing list archive)
Headers show
Series Cleanups and fixup for page_alloc | expand

Message

Miaohe Lin Aug. 30, 2021, 2:10 p.m. UTC
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(-)