[PATCH v2 00/16] A few cleanup patches for mm

From: Miaohe Lin
Date: Fri Sep 16 2022 - 03:24:00 EST


Hi everyone,
This series contains a few cleanup patches to remove the obsolete
comments and functions, use helper macro to improve readability and
so on. More details can be found in the respective changelogs.
Thanks!
---
v2:
Thanks David, Oscar, Anshuman and Matthew for review and comment!
Collect Reviewed-by and Acked-by tag.
3/6: Further remove NR_PCP_ORDER_WIDTH per Matthew.
8/16: Tweak changelog to better explain the issue per Oscar.
12/16: Adjust if block to match comment per David.
---
Miaohe Lin (16):
mm/page_alloc: ensure kswapd doesn't accidentally go to sleep
mm/page_alloc: make zone_pcp_update() static
mm: remove obsolete macro NR_PCP_ORDER_MASK and NR_PCP_ORDER_WIDTH
mm/page_alloc: remove obsolete comment in zone_statistics()
mm/page_alloc: add __init annotations to
init_mem_debugging_and_hardening()
mm/page_alloc: fix freeing static percpu memory
mm: remove obsolete pgdat_is_empty()
mm/page_alloc: add missing is_migrate_isolate() check in
set_page_guard()
mm/page_alloc: use local variable zone_idx directly
mm, memory_hotplug: remove obsolete generic_free_nodedata()
mm/page_alloc: make boot_nodestats static
mm/page_alloc: use helper macro SZ_1{K,M}
mm/page_alloc: init local variable buddy_pfn
mm/page_alloc: use costly_order in WARN_ON_ONCE_GFP()
mm/page_alloc: remove obsolete gfpflags_normal_context()
mm/page_alloc: fix obsolete comment in deferred_pfn_valid()

include/linux/gfp.h | 23 -------------
include/linux/memory_hotplug.h | 8 -----
include/linux/mm.h | 2 +-
include/linux/mmzone.h | 12 -------
mm/internal.h | 3 --
mm/page_alloc.c | 63 ++++++++++++++++------------------
6 files changed, 31 insertions(+), 80 deletions(-)

--
2.23.0