From patchwork Tue Dec 3 08:37:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 13895584 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 D3FE2E7716C for ; Thu, 5 Dec 2024 15:32:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A21F36B00E9; Thu, 5 Dec 2024 10:19:29 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 18ECF6B0123; Thu, 5 Dec 2024 10:19:24 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3F7776B00CA; Thu, 5 Dec 2024 10:19:15 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 26F786B007B for ; Tue, 3 Dec 2024 03:38:29 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id DAE1D120798 for ; Tue, 3 Dec 2024 08:38:28 +0000 (UTC) X-FDA: 82852995708.19.3E8F477 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf13.hostedemail.com (Postfix) with ESMTP id D0C2F20019 for ; Tue, 3 Dec 2024 08:38:12 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="X+dwj/SN"; spf=pass (imf13.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=1733215101; 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=LU3Y8BABokL9EuVXZz3YTSIe3emDP78aZncO4AsTCRE=; b=g0vPWuRDFj4sGiVDTt84NYOgAd5fBSbCpX303DEOdv3DtHfTTkbyWxtHW8f9BkAmD99K7F VfntRxhXL4iSJwpLk2GvksXUC2UvRMVB7IUr/TL/IQG5zbs/3bmfC2j5EobNq5JrxbwoDz YMeVBJsnIaLGRLiBeadHaDXmRBBb/48= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1733215101; a=rsa-sha256; cv=none; b=7nxe/zMQVkhSpAr27aJeUzovXa86Rlh0+6iRctqkgrIJSAvYHnlgnoZFr+GKsBJ782xXG1 Nxjf9Rq6taR7oEHqrGtsuKTnZnc4pg5ZcjaTtTVXuRysDxBudN3ISwm1IZtqd89YPLxFqL fpHYQ/ktfUpDUidN+QYm1HZLXZXQSBs= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="X+dwj/SN"; spf=pass (imf13.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=1733215106; 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=LU3Y8BABokL9EuVXZz3YTSIe3emDP78aZncO4AsTCRE=; b=X+dwj/SNBbgNSQ63HjCvkjhc4aBBaEZygfKPs3/1ENO42X/4GxKTh6NWHCzPyTP65y74cf s5qL8AUIUmEofRtpdT1BNJHmTTS2y/aQBqW1arZ/lSZkpImYZxJBUpq6QmWVrVBrThfJXR JAD+Hep5gJ/Einp+SvVXm0vviwJZHAs= Received: from mx-prod-mc-03.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-463-KsYeB2QvPViavZaAQQOzig-1; Tue, 03 Dec 2024 03:38:21 -0500 X-MC-Unique: KsYeB2QvPViavZaAQQOzig-1 X-Mimecast-MFC-AGG-ID: KsYeB2QvPViavZaAQQOzig Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6D7EA1955DC2; Tue, 3 Dec 2024 08:38:19 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.22.88.109]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B1C8F30001A0; Tue, 3 Dec 2024 08:38:14 +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 v2 3/6] mm/page_alloc: make __alloc_contig_migrate_range() static Date: Tue, 3 Dec 2024 09:37:53 +0100 Message-ID: <20241203083756.112975-4-david@redhat.com> In-Reply-To: <20241203083756.112975-1-david@redhat.com> References: <20241203083756.112975-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Rspamd-Server: rspam10 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ugidlRiy/lcBv TGBAWQd5 Ky32uZ+oy2bp8jEUyRVXnoh+XFyDSHnvSVSHjuwC26AR+fJ75o5T/acMTZHrcCuQzEldBr9ItzxbTKUIyGNEM5Kra/WJzdaqiymVEGK5bToo4k6VvXOIifFobNdXEoa+DjDv5m+pw33C0NUFlcvYyI9KZdZWjc9zDNmyInlQ6yFVJdsfPNRgdi7KIvFlCxcrvABCdrtX1+5nS3FSFuRSiBLcXgk0Na7svdmrsaaHkAL+xY3rz/0xvGLtIdmemMhackfJ0dhr5RzN/+1RvE15IiqFbhIobQMIMybhqTD3t+sJHQNxTgwEi4CiVfaD+618auMSRUyFNgusPiVXfVkiLL8HcNqt8Xv9mh1NIcs0VrTh4i25JJvm9asPSaEdf8/Vg6M/n57322xGcDvQyiuifWwFiE5tpqeC19bYEcjlZmwaznds= 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. Reviewed-by: Zi Yan 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 74713b44bedb..4bd3685c33ef 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;