Skip to content

mm: Further memory block device cleanups

David Hildenbrand linux-acpi linux-mm linuxppc-dev lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 9 repliesIn review
  2. v26 patches 3 repliesSuperseded
  3. v16 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- "mm/memory_hotplug: Rename walk_memory_range() and pass start+size .." -- Avoid warning on ppc.
- "drivers/base/memory.c: Get rid of find_memory_block_hinted()" -- Fixup a comment regarding hinted devices.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6mm: Section numbers use the type "unsigned long"drivers/base/memory.c include/linux/mmzone.h mm/sparse.c+21 -220 replies
2/6drivers/base/memory: Use "unsigned long" for block idsdrivers/base/memory.c+11 -110 replies
3/6mm: Make register_mem_sect_under_node() staticdrivers/base/node.c include/linux/node.h+2 -80 replies
4/6mm/memory_hotplug: Rename walk_memory_range() and pass start+size instead of pfnsarch/powerpc/platforms/powernv/memtrace.c drivers/acpi/acpi_memhotplug.c drivers/base/node.c +2 more+32 -410 replies
5/6mm/memory_hotplug: Move and simplify walk_memory_blocks()drivers/base/memory.c include/linux/memory.h include/linux/memory_hotplug.h +1 more+45 -571 reply
6/6drivers/base/memory.c: Get rid of find_memory_block_hinted()drivers/base/memory.c include/linux/memory.h+11 -280 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by.

PatchQian Cai
SeriesT-b
1/6
2/6
3/6
4/6
5/6
6/6

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

Read the v3 thread

Cover letter [PATCH v3 0/6] mm: Further memory block device cleanups

@Andrew: Only patch 1, 4 and 6 changed compared to v1.

Some further cleanups around memory block devices. Especially, clean up and simplify walk_memory_range(). Including some other minor cleanups.

Compiled + tested on x86 with DIMMs under QEMU. Compile-tested on ppc64.

v2 -> v3:
- "mm/memory_hotplug: Rename walk_memory_range() and pass start+size .." -- Avoid warning on ppc.
- "drivers/base/memory.c: Get rid of find_memory_block_hinted()" -- Fixup a comment regarding hinted devices.

v1 -> v2:
- "mm: Section numbers use the type "unsigned long""
-- "unsigned long i" -> "unsigned long nr", in one case -> "int i"
- "drivers/base/memory.c: Get rid of find_memory_block_hinted(" -- Fix compilation error
-- Get rid of the "hint" parameter completely

David Hildenbrand (6):
mm: Section numbers use the type "unsigned long" drivers/base/memory: Use "unsigned long" for block ids
mm: Make register_mem_sect_under_node() static mm/memory_hotplug: Rename walk_memory_range() and pass start+size
instead of pfns
mm/memory_hotplug: Move and simplify walk_memory_blocks() drivers/base/memory.c: Get rid of find_memory_block_hinted()

 arch/powerpc/platforms/powernv/memtrace.c |  23 ++---
 drivers/acpi/acpi_memhotplug.c            |  19 +---
 drivers/base/memory.c                     | 120 +++++++++++++---------
 drivers/base/node.c                       |   8 +-
 include/linux/memory.h                    |   5 +-
 include/linux/memory_hotplug.h            |   2 -
 include/linux/mmzone.h                    |   4 +-
 include/linux/node.h                      |   7 --
 mm/memory_hotplug.c                       |  57 +---------
 mm/sparse.c                               |  12 +--
 10 files changed, 106 insertions(+), 151 deletions(-)
Signature · 1 line
2.21.0