Skip to content

Minor memoryhotplug refactoring

Oscar Salvador linux-mm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 9 repliesIn review
  2. v13 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Addressed feedback from David

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/page_alloc: Do not calculate node's total pages and memmap pages when emptymm/page_alloc.c+12 -46 replies
2/2mm/memory_hotplug: Reset node's state when empty during offlineinclude/linux/memory_hotplug.h mm/memory_hotplug.c mm/page_alloc.c+41 -643 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchDavid Hildenbrand
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Minor memoryhotplug refactoring

Hi,

these are a few cleanups.

The first one is to spare us with some operations when dealing with empty nodes, and the second one is to refactor memory-hotplug code taking advantatge of the fact that we initialize all nodes (empty or not) when booting the system. That gives us the chance to only have to reset some fields when the node goes offline again.

More information can be found in the respective patches.

v1 -> v2:
- Addressed feedback from David

Oscar Salvador (2):
mm/page_alloc: Do not calculate node's total pages and memmap pages
when empty
mm/memory_hotplug: Reset node's state when empty during offline

 include/linux/memory_hotplug.h |  2 +-
 mm/memory_hotplug.c            | 54 ++++++++++++++++------------
 mm/page_alloc.c                | 65 +++++++++++-----------------------
 3 files changed, 53 insertions(+), 68 deletions(-)
Signature · 1 line
2.35.3