memblock-numa-introduce-flags-field-into-memblock.patch removed from -mm tree
[email protected]
maintainerSubject: [merged] memblock-numa-introduce-flags-field-into-memblock.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 22 Jan 2014 12:13:00 -0800
The patch titled
Subject: memblock, numa: introduce flags field into memblock
has been removed from the -mm tree. Its filename was
memblock-numa-introduce-flags-field-into-memblock.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Tang Chen <[email protected]>
Subject: memblock, numa: introduce flags field into memblock
There is no flag in memblock to describe what type the memory is. Sometimes, we may use memblock to reserve some memory for special usage. And we want to know what kind of memory it is. So we need a way to
In hotplug environment, we want to reserve hotpluggable memory so the kernel won't be able to use it. And when the system is up, we have to free these hotpluggable memory to buddy. So we need to mark these memory first.
In order to do so, we need to mark out these special memory in memblock. In this patch, we introduce a new "flags" member into memblock_region:
struct memblock_region {
phys_addr_t base;
phys_addr_t size;
unsigned long flags; /* This is new. */
#ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP
int nid; #endif
};
This patch does the following things:
1) Add "flags" member to memblock_region.
2) Modify the following APIs' prototype:
memblock_add_region()
memblock_insert_region()
3) Add memblock_reserve_region() to support reserve memory with flags, and keep memblock_reserve()'s prototype unmodified.
4) Modify other APIs to support flags, but keep their prototype unmodified.
The idea is from Wen Congyang <[email protected]> and Liu Jiang <[email protected]>.
---
include/linux/memblock.h | 1 mm/memblock.c | 53 ++++++++++++++++++++++++++----------- 2 files changed, 39 insertions(+), 15 deletions(-)
include/linux/memblock.h renamed from include/linux/memblock.h~memblock-numa-introduce-flags-field-into-memblock +1 -0
@@ -22,6 +22,7 @@struct memblock_region {phys_addr_t base;phys_addr_t size; +unsigned long flags;#ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP int nid;#endif
mm/memblock.c renamed from mm/memblock.c~memblock-numa-introduce-flags-field-into-memblock +38 -15
164 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
origin.patch mm-nobootmemc-add-return-value-check-in-__alloc_memory_core_early.patch mm-free-memblockmemory-in-free_all_bootmem.patch mm-free-memblockmemory-in-free_all_bootmem-fix.patch mm-nobootmem-free_all_bootmem-again.patch mm-memory_hotplugc-move-register_memory_resource-out-of-the-lock_memory_hotplug.patch linux-next.patch