Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3412379imu; Fri, 18 Jan 2019 09:55:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN6LIbZCkra1BwtgNOe+1b3BVaKhMJOovqSwB4o/W8ptFZRxQ5R6oWffnhd2ibVGL4hB6IhX X-Received: by 2002:a63:5518:: with SMTP id j24mr18340310pgb.208.1547834137523; Fri, 18 Jan 2019 09:55:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547834137; cv=none; d=google.com; s=arc-20160816; b=mEQ1y30z0QQNJwi+VlxcHqjDGNLQMVA/utFgl8fYlhIjaaFK0Nd3qM/juXgD2pC0We IcDHYaCsqp7XAv5X/vzxmIrhZwNKvBC6szHRnqnPkq2CqhimubLdppEZxAzzNBYUicSu +i8is0s/iXyzOnxUN8IqI6DUpfjQpgJqPyGKOBXKKPbXl8maAMXwYbpcquxIec/4ZTvX 0ABYECe9EshTGNLCJsXgV6fj4fEMeiQ3eDJ1oi6iXfnBvW9Urfmaina3XFDiEIltJ/Ub vqDiRQye0mJIwgpcLjTzTePNNQVtWQYblqfxB83SRI01DvmSkdtqSdqu95qAEd3jevGW y9KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=P8Tp9Lkjn32V8x7VDqI+dSnJv5qW3LqKtFSOno963ec=; b=WgPuhx4bYN1gQSHUxps64OwRZjxyfXUTz9ZSv6BXI1jFMP60sB2/U3q/fj+8M/Fl7H rlM41sR1PJDOm48W+Jgt2JTQBiYYF2cU3rx+TkHqmA3HTvLodXZ1dgibjq3cVGGNs7aF 8z97kOXHbn+rifVefXu6WBPR0uvWvUAfPVQqdj8EVq6jVTHiNgGmkDN06j20e2QLMpcu 7NCa8iT1eYSTMUwLX6Lk73gAzGp1L63LE4/8GQbuxr45kIqgbyJ+3q+zgVv/B5l5edp6 Jx6b705Ox65lDjGqh74oK8anStsfE2BRZF5t/uVdK+8fTWCzFV/XEy5ckxNOu1Nk+epJ eXfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4si5272561pfk.172.2019.01.18.09.55.19; Fri, 18 Jan 2019 09:55:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728773AbfARRwk (ORCPT + 99 others); Fri, 18 Jan 2019 12:52:40 -0500 Received: from outbound-smtp08.blacknight.com ([46.22.139.13]:53440 "EHLO outbound-smtp08.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728696AbfARRwj (ORCPT ); Fri, 18 Jan 2019 12:52:39 -0500 Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp08.blacknight.com (Postfix) with ESMTPS id 0DFC01C3589 for ; Fri, 18 Jan 2019 17:52:38 +0000 (GMT) Received: (qmail 340 invoked from network); 18 Jan 2019 17:52:37 -0000 Received: from unknown (HELO stampy.163woodhaven.lan) (mgorman@techsingularity.net@[37.228.229.96]) by 81.17.254.9 with ESMTPA; 18 Jan 2019 17:52:37 -0000 From: Mel Gorman To: Andrew Morton Cc: David Rientjes , Andrea Arcangeli , Vlastimil Babka , Linux List Kernel Mailing , Linux-MM , Mel Gorman Subject: [PATCH 05/22] mm, compaction: Rename map_pages to split_map_pages Date: Fri, 18 Jan 2019 17:51:19 +0000 Message-Id: <20190118175136.31341-6-mgorman@techsingularity.net> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190118175136.31341-1-mgorman@techsingularity.net> References: <20190118175136.31341-1-mgorman@techsingularity.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It's non-obvious that high-order free pages are split into order-0 pages from the function name. Fix it. Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka --- mm/compaction.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/compaction.c b/mm/compaction.c index 163841e1b167..32a88b49f973 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -66,7 +66,7 @@ static unsigned long release_freepages(struct list_head *freelist) return high_pfn; } -static void map_pages(struct list_head *list) +static void split_map_pages(struct list_head *list) { unsigned int i, order, nr_pages; struct page *page, *next; @@ -644,7 +644,7 @@ isolate_freepages_range(struct compact_control *cc, } /* __isolate_free_page() does not map the pages */ - map_pages(&freelist); + split_map_pages(&freelist); if (pfn < end_pfn) { /* Loop terminated early, cleanup. */ @@ -1141,7 +1141,7 @@ static void isolate_freepages(struct compact_control *cc) } /* __isolate_free_page() does not map the pages */ - map_pages(freelist); + split_map_pages(freelist); /* * Record where the free scanner will restart next time. Either we -- 2.16.4