aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_xarray.c
diff options
context:
space:
mode:
authorJonathan Cameron <[email protected]>2024-06-05 08:20:49 +0000
committerAndrew Morton <[email protected]>2024-07-04 02:30:04 +0000
commit7b09fa7ea4ee91ec2ad8ea6e9560f63901f2b76a (patch)
treec6816c70280cddd64f2c4cfde0f49ce6140db2a7 /lib/test_xarray.c
parentkmemleak-test: add missing MODULE_DESCRIPTION() macro (diff)
downloadkernel-7b09fa7ea4ee91ec2ad8ea6e9560f63901f2b76a.tar.gz
kernel-7b09fa7ea4ee91ec2ad8ea6e9560f63901f2b76a.zip
mm/memory_hotplug: drop memblock_phys_free() call in try_remove_memory()
The call for memblock_phys_free() in try_remove_memory() does not balance any call to memblock_alloc() (or memblock_reserve() for that matter). There are no memblock_reserve() calls in mm/memory_hotplug.c, no memblock allocations possible after mm_core_init(), and even if memblock_add_node() called from add_memory_resource() would need to allocate memory, that memory would ba allocated from slab. The patch f9126ab9241f ("memory-hotplug: fix wrong edge when hot add a new node") that introduced that call to memblock_free() does not provide adequate description why that was required and tinkering with memblock in the context of memory hotplug on x86 seems bogus because x86 never kept memblock after boot anyway. Drop memblock_phys_free() call in try_remove_memory(). [[email protected]: rewrite the commit message] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Mike Rapoport (IBM) <[email protected]> Acked-by: David Hildenbrand <[email protected]> Acked-by: Oscar Salvador <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions