mm-memory_hotplug-consider-offline-memblocks-removable.patch removed from -mm tree
The patch titled
Subject: mm, memory_hotplug: consider offline memblocks removable
has been removed from the -mm tree. Its filename was
mm-memory_hotplug-consider-offline-memblocks-removable.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Michal Hocko <[email protected]>
Subject: mm, memory_hotplug: consider offline memblocks removable
is_pageblock_removable_nolock() relies on having zone association to examine all the page blocks to check whether they are movable or free. This is just wasting of cycles when the memblock is offline. Later patch in the series will also change the time when the page is associated with a zone so we let's bail out early if the memblock is offline.
---
drivers/base/memory.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/base/memory.c renamed from drivers/base/memory.c~mm-memory_hotplug-consider-offline-memblocks-removable +4 -0
@@ -128,6 +128,9 @@ static ssize_t show_mem_removable(structint ret =1 ;struct memory_block *mem =to_memory_block (dev); +if (mem->state !=MEM_ONLINE ) + goto out; +for (i =0 ; i < sections_per_block; i++) {if (!present_section_nr (mem->start_section_nr + i))continue ;
@@ -135,6 +138,7 @@ static ssize_t show_mem_removable(struct ret &=is_mem_section_removable (pfn,PAGES_PER_SECTION ); } +out:return sprintf (buf,"%d\n" , ret); }
_
Patches currently in -mm which might be from [email protected] are
mm-make-pr_set_thp_disable-immediately-active.patch mm-memory_hotplug-simplify-empty-node-mask-handling-in-new_node_page.patch hugetlb-memory_hotplug-prefer-to-use-reserved-pages-for-migration.patch mm-unify-new_node_page-and-alloc_migrate_target.patch mm-memcg-fix-potential-undefined-behavior-in-mem_cgroup_event_ratelimit.patch mm-hugetlb-unclutter-hugetlb-allocation-layers.patch hugetlb-add-support-for-preferred-node-to-alloc_huge_page_nodemask.patch mm-hugetlb-soft_offline-use-new_page_nodemask-for-soft-offline-migration.patch mm-document-highmem_is_dirtyable-sysctl.patch mm-mm-mmap-do-not-blow-on-prot_none-map_fixed-holes-in-the-stack.patch mm-disallow-early_pfn_to_nid-on-configurations-which-do-not-implement-it.patch lib-rhashtablec-use-kvzalloc-in-bucket_table_alloc-when-possible.patch netfilter-use-kvmalloc-xt_alloc_table_info.patch mips-do-not-use-__gfp_repeat-for-order-0-request.patch mm-tree-wide-replace-__gfp_repeat-by-__gfp_retry_mayfail-with-more-useful-semantic.patch mm-tree-wide-replace-__gfp_repeat-by-__gfp_retry_mayfail-with-more-useful-semantic-fix-2.patch xfs-map-km_mayfail-to-__gfp_retry_mayfail.patch mm-kvmalloc-support-__gfp_retry_mayfail-for-all-sizes.patch drm-i915-use-__gfp_retry_mayfail.patch mm-migration-do-not-trigger-oom-killer-when-migrating-memory.patch