From patchwork Mon Dec 2 12:58:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 13895597 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A5E0E7716C for ; Thu, 5 Dec 2024 15:35:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6BA6B6B0143; Thu, 5 Dec 2024 10:19:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D6DC06B00F5; Thu, 5 Dec 2024 10:19:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 99AC36B00CB; Thu, 5 Dec 2024 10:19:15 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 4B9906B0082 for ; Mon, 2 Dec 2024 07:58:41 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id DED051C558E for ; Mon, 2 Dec 2024 12:58:40 +0000 (UTC) X-FDA: 82850022822.23.EF19BF9 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf20.hostedemail.com (Postfix) with ESMTP id 17A1C1C0009 for ; Mon, 2 Dec 2024 12:58:25 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=eW62dd4H; spf=pass (imf20.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1733144311; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=JUyVMeCRN6dieaM+cMlV+AJS5EnHgADa23V603hh+n4=; b=2hmrk8LyG6eTVinbXg5nhvCYvbhwazKY74zFJpBkW0k6cYPIOyt8pxKa7hh/8ltJ6q4vGM 2m33EcePkbb0ZlXkcRTck4paKFNZWqngR2FJhGZOueO/h7z5+y2a6eaB1k7UWQrtuRwZoT SdFk2leqfugJ11hXu6OaYjLdelqeMyQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733144311; a=rsa-sha256; cv=none; b=vKx5WX+wP6+47t9zGE8HKvIUZmrqHjTkoeza/zTCzJtNCr98v37N4+a6akng3IDfAS0uUh aF8NL3PwF/gW/JT1jxIM7q0VS9Y79zxvAt74oFT+NPpqUJqXb6mFfeb8TBR6aUlEYl519V u0ko4+V9/g++5brvKnFaeICKRtiq+AU= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=eW62dd4H; spf=pass (imf20.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1733144318; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JUyVMeCRN6dieaM+cMlV+AJS5EnHgADa23V603hh+n4=; b=eW62dd4HsP1xxadHeTCnRjjjCXxPgsRKk28Q9FqUd07Ao4QfzDFqslhGwuq7aQr5QW52QC A07I25f9Y3n39xFEywaMZaKwQr27fk5RJY4E4Ub2CFzaFKw5HaMOSkdnYmUV0JrcHEXFkZ ZxLtUqNPqtO3UrH+mJtRuHMDseUaevc= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-223-IvBmzQ_7PqKMDv2FdB_o2Q-1; Mon, 02 Dec 2024 07:58:37 -0500 X-MC-Unique: IvBmzQ_7PqKMDv2FdB_o2Q-1 X-Mimecast-MFC-AGG-ID: IvBmzQ_7PqKMDv2FdB_o2Q Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2E6DB1954229; Mon, 2 Dec 2024 12:58:35 +0000 (UTC) Received: from t14s.cit.tum.de (unknown [10.39.194.150]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 82C4E1955EA7; Mon, 2 Dec 2024 12:58:30 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, David Hildenbrand , Andrew Morton , Oscar Salvador , Zi Yan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan Subject: [PATCH v1 3/6] mm/page_alloc: make __alloc_contig_migrate_range() static Date: Mon, 2 Dec 2024 13:58:09 +0100 Message-ID: <20241202125812.561028-4-david@redhat.com> In-Reply-To: <20241202125812.561028-1-david@redhat.com> References: <20241202125812.561028-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Rspamd-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XX49J0iYx9eLKxBZ/ CTy6sRYl DvP/gYEB7pel2P0zoSmxEm7afB21pQgmK7M6xY9aO8C+uxyRNhyLoufFTprRFD+kEi3u4U+3HfQz5si9oqkxCvBkIppqkxXlX8g+Y4fB+j/fqkvBixbkMuYOQvmHIKTEuHUbisRy7SRk5z/Am5h9gmwCKHbkNFB6CcO+cLNixftNG2qaDXUGR7Ww2xRho8+T6thYU854LgpgKTyLWO/0mVmhfxgr1RD3vdWRRGZaNEqw0A/oODX5fgzIzKebH7t2al763tYgchc+dGj0tkbA+7OHldZFMpn25SrofVaOLUbwrusDGwOG545UhJbXyxQaQ86rdg++kzagRbsadwUhew8he5/QeTbeMqyuwBrzhI94bFFOYy+ZtFTAr/gq/k0PY4yFIoEhYSjWgEdvIFwwKAxqWvA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: The single user is in page_alloc.c. Signed-off-by: David Hildenbrand --- mm/internal.h | 4 ---- mm/page_alloc.c | 5 ++--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index 0d17095c2dee..5656089eea7c 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -839,10 +839,6 @@ int isolate_migratepages_range(struct compact_control *cc, unsigned long low_pfn, unsigned long end_pfn); -int __alloc_contig_migrate_range(struct compact_control *cc, - unsigned long start, unsigned long end, - int migratetype); - /* Free whole pageblock and set its migration type to MIGRATE_CMA. */ void init_cma_reserved_pageblock(struct page *page); diff --git a/mm/page_alloc.c b/mm/page_alloc.c index f371fbf2145b..ce7589a4ec01 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6284,9 +6284,8 @@ static void alloc_contig_dump_pages(struct list_head *page_list) * @migratetype: using migratetype to filter the type of migration in * trace_mm_alloc_contig_migrate_range_info. */ -int __alloc_contig_migrate_range(struct compact_control *cc, - unsigned long start, unsigned long end, - int migratetype) +static int __alloc_contig_migrate_range(struct compact_control *cc, + unsigned long start, unsigned long end, int migratetype) { /* This function is based on compact_zone() from compaction.c. */ unsigned int nr_reclaimed;