mbox series

[v2,0/3] Refactoring for remove_memory_section/unregister_mem_sect_under_nodes

Message ID 20180813154639.19454-1-osalvador@techadventures.net (mailing list archive)
Headers show
Series Refactoring for remove_memory_section/unregister_mem_sect_under_nodes | expand

Message

Oscar Salvador Aug. 13, 2018, 3:46 p.m. UTC
From: Oscar Salvador <osalvador@suse.de>

This patchset does some cleanups and refactoring in the memory-hotplug code.

The first and the second patch are pretty straightforward, as they
only remove unused arguments/checks.

The third one refactors unregister_mem_sect_under_nodes.
This is needed to have a proper fallback in case we could not allocate
memory. (details can be seen in patch3).

Oscar Salvador (3):
  mm/memory-hotplug: Drop unused args from remove_memory_section
  mm/memory_hotplug: Drop mem_blk check from
    unregister_mem_sect_under_nodes
  mm/memory_hotplug: Refactor unregister_mem_sect_under_nodes

 drivers/base/memory.c |  5 ++---
 drivers/base/node.c   | 30 +++++++++++++++---------------
 include/linux/node.h  |  5 ++---
 3 files changed, 19 insertions(+), 21 deletions(-)