diff options
| author | Haifeng Xu <[email protected]> | 2023-06-07 02:45:48 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-06-19 16:19:05 -0700 |
| commit | a668968f84265e698a122656c433809ab9f023fa (patch) | |
| tree | ca2354272c2f419083ccaf7fc29c2bd2dcd9c0ba /tools/perf/scripts/python/task-analyzer.py | |
| parent | 36ce9d76b0a93bae799e27e4f5ac35478c676592 (diff) | |
mm/memory_hotplug: remove reset_node_managed_pages() in hotadd_init_pgdat()
managed pages has already been set to 0 in free_area_init_core_hotplug(),
via zone_init_internals() on each zone. It's pointless to reset again.
Furthermore, reset_node_managed_pages() no longer needs to be exposed
outside of mm/memblock.c. Remove declaration in include/linux/memblock.h
and define it as static.
In addtion to this, the only caller of reset_node_managed_pages() is
reset_all_zones_managed_pages(), which is annotated with __init, so it
should be safe to also mark reset_node_managed_pages() as __init.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Haifeng Xu <[email protected]>
Suggested-by: David Hildenbrand <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Mike Rapoport (IBM) <[email protected]>
Cc: Oscar Salvador <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions