Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753560AbbEAJXg (ORCPT ); Fri, 1 May 2015 05:23:36 -0400 Received: from cantor2.suse.de ([195.135.220.15]:36548 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752268AbbEAJXe (ORCPT ); Fri, 1 May 2015 05:23:34 -0400 Date: Fri, 1 May 2015 10:23:30 +0100 From: Mel Gorman To: Andrew Morton Cc: Nathan Zimmer , Dave Hansen , Waiman Long , Scott Norton , Daniel J Blueman , Linux-MM , LKML Subject: [PATCH] mm: meminit: Reduce number of times pageblocks are set during struct page init -fix Message-ID: <20150501092330.GD2449@suse.de> References: <1430231830-7702-1-git-send-email-mgorman@suse.de> <1430231830-7702-13-git-send-email-mgorman@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1430231830-7702-13-git-send-email-mgorman@suse.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1162 Lines: 30 The patch "mm: meminit: Reduce number of times pageblocks are set during struct page init" is setting a pageblock before the page is initialised. This is a fix for the mmotm patch mm-meminit-reduce-number-of-times-pageblocks-are-set-during-struct-page-init.patch Signed-off-by: Mel Gorman --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 19aac687963c..544edb3b8da2 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -4497,8 +4497,8 @@ void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone, if (!(pfn & (pageblock_nr_pages - 1))) { struct page *page = pfn_to_page(pfn); - set_pageblock_migratetype(page, MIGRATE_MOVABLE); __init_single_page(page, pfn, zone, nid); + set_pageblock_migratetype(page, MIGRATE_MOVABLE); } else { __init_single_pfn(pfn, zone, nid); } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/