From: akpm@linux-foundation.org Subject: [merged] mm-sparse-fix-typo-in-online_mem_sections.patch removed from -mm tree Date: Mon, 11 Sep 2017 12:40:19 -0700 Message-ID: <20170911194019.emEVfqKiT%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:49362 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751015AbdIKTkU (ORCPT ); Mon, 11 Sep 2017 15:40:20 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: khandual@linux.vnet.ibm.com, mhocko@suse.com, mm-commits@vger.kernel.org, stable@vger.kernel.org, vbabka@suse.cz The patch titled Subject: mm/sparse.c: fix typo in online_mem_sections has been removed from the -mm tree. Its filename was mm-sparse-fix-typo-in-online_mem_sections.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Michal Hocko Subject: mm/sparse.c: fix typo in online_mem_sections online_mem_sections() accidentally marks online only the first section in the given range. This is a typo which hasn't been noticed because I haven't tested large 2GB blocks previously. All users of pfn_to_online_page would get confused on the the rest of the pfn range in the block. All we need to fix this is to use iterator (pfn) rather than start_pfn. Link: http://lkml.kernel.org/r/20170904112210.3401-1-mhocko@kernel.org Fixes: 2d070eab2e82 ("mm: consider zone which is not fully populated to have holes") Signed-off-by: Michal Hocko Acked-by: Vlastimil Babka Cc: Anshuman Khandual Cc: Signed-off-by: Andrew Morton --- mm/sparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/sparse.c~mm-sparse-fix-typo-in-online_mem_sections mm/sparse.c --- a/mm/sparse.c~mm-sparse-fix-typo-in-online_mem_sections +++ a/mm/sparse.c @@ -626,7 +626,7 @@ void online_mem_sections(unsigned long s unsigned long pfn; for (pfn = start_pfn; pfn < end_pfn; pfn += PAGES_PER_SECTION) { - unsigned long section_nr = pfn_to_section_nr(start_pfn); + unsigned long section_nr = pfn_to_section_nr(pfn); struct mem_section *ms; /* onlining code should never touch invalid ranges */ _ Patches currently in -mm which might be from mhocko@suse.com are mm-memory_hotplug-do-not-back-off-draining-pcp-free-pages-from-kworker-context.patch treewide-remove-gfp_temporary-allocation-flag.patch