Skip to content

mm/memory_hotplug: online_pages() cleanups

David Hildenbrand 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 Latest5 patches 9 repliesIn review
  2. v14 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- "mm/memory_hotplug: Handle unaligned start and nr_pages in online_pages_blocks()"
-- Turned into "mm/memory_hotplug: make sure the pfn is aligned to the
order when onlining"
-- Dropped the "nr_pages not an order of two" condition for now as
requested by Michal, but kept a simplified alignment check
- "mm/memory_hotplug: Drop PageReserved() check in online_pages_range()" -- Split out from "mm/memory_hotplug: Simplify online_pages_range()"
- "mm/memory_hotplug: Simplify online_pages_range()"
-- Modified due to the other changes

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5resource: Use PFN_UP / PFN_DOWN in walk_system_ram_range()kernel/resource.c+2 -21 reply
2/5mm/memory_hotplug: Drop PageReserved() check in online_pages_range()mm/memory_hotplug.c+1 -31 reply
3/5mm/memory_hotplug: Simplify online_pages_range()mm/memory_hotplug.c+16 -201 reply
4/5mm/memory_hotplug: Make sure the pfn is aligned to the order when onliningmm/memory_hotplug.c+3 -06 replies
5/5mm/memory_hotplug: online_pages cannot be 0 in online_pages()mm/memory_hotplug.c+9 -130 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchMichal HockoWei Yang
1/5A-b R-b
2/5A-b
3/5A-b
4/5
5/5A-b

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/5] mm/memory_hotplug: online_pages() cleanups

Some cleanups (+ one fix for a special case) in the context of online_pages(). Hope I am not missing something obvious. Did a sanity test with DIMMs only.

v1 -> v2:
- "mm/memory_hotplug: Handle unaligned start and nr_pages in online_pages_blocks()"
-- Turned into "mm/memory_hotplug: make sure the pfn is aligned to the
order when onlining"
-- Dropped the "nr_pages not an order of two" condition for now as
requested by Michal, but kept a simplified alignment check
- "mm/memory_hotplug: Drop PageReserved() check in online_pages_range()" -- Split out from "mm/memory_hotplug: Simplify online_pages_range()"
- "mm/memory_hotplug: Simplify online_pages_range()"
-- Modified due to the other changes

David Hildenbrand (5):
resource: Use PFN_UP / PFN_DOWN in walk_system_ram_range() mm/memory_hotplug: Drop PageReserved() check in online_pages_range() mm/memory_hotplug: Simplify online_pages_range() mm/memory_hotplug: Make sure the pfn is aligned to the order when
onlining
mm/memory_hotplug: online_pages cannot be 0 in online_pages()

 kernel/resource.c   |  4 +--
 mm/memory_hotplug.c | 61 ++++++++++++++++++++-------------------------
 2 files changed, 29 insertions(+), 36 deletions(-)
Signature · 1 line
2.21.0